mirror of
https://github.com/gryf/wmaker.git
synced 2026-11-24 16:46:54 +01:00
Updating to version 0.20.2
Many bug fixes.
This commit is contained in:
1 parent
9d2e6ef9f1
commit
9af1c6c415
222 files changed
+9131
-4321
No files matched your search
+9
-2
@@ -243,6 +243,9 @@ WMGetSavePanel(WMScreen *scrPtr)
|
||||
void
|
||||
WMFreeFilePanel(WMFilePanel *panel)
|
||||
{
|
||||
if (panel == WMWidgetScreen(panel->win)->sharedSavePanel) {
|
||||
WMWidgetScreen(panel->win)->sharedSavePanel = NULL;
|
||||
}
|
||||
if (panel == WMWidgetScreen(panel->win)->sharedOpenPanel) {
|
||||
WMWidgetScreen(panel->win)->sharedOpenPanel = NULL;
|
||||
}
|
||||
@@ -501,8 +504,12 @@ getCurrentFileName(WMFilePanel *panel)
|
||||
if (path[len-1]=='/') {
|
||||
file = WMGetTextFieldText(panel->fileField);
|
||||
tmp = wmalloc(strlen(path)+strlen(file)+8);
|
||||
strcpy(tmp, path);
|
||||
strcat(tmp, file);
|
||||
if (file[0]!='/') {
|
||||
strcpy(tmp, path);
|
||||
strcat(tmp, file);
|
||||
} else
|
||||
strcpy(tmp, file);
|
||||
|
||||
free(file);
|
||||
free(path);
|
||||
return tmp;
|
||||
|
||||
Reference in new issue
Block a user