Skip to content

Commit

Permalink
Fixes #45
Browse files Browse the repository at this point in the history
Generalizes the ways to cancel the window.
  • Loading branch information
RicardoEPRodrigues committed Nov 4, 2018
1 parent 8cec421 commit 65f55d9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file not shown.
Binary file modified Package/StandaloneFileBrowser.unitypackage
Binary file not shown.
2 changes: 1 addition & 1 deletion Plugins/Linux/StandaloneFileBrowser/library.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ GTKOpenPanel(const char* title, const char* directory, const char* extensions, b
strcpy(filename, name);
g_free(name);
}
} else if (res == GTK_RESPONSE_CANCEL) {
} else { // if (res == GTK_RESPONSE_CANCEL) {
filename = malloc(sizeof(char));
filename[0] = '\0';
}
Expand Down

0 comments on commit 65f55d9

Please sign in to comment.