summaryrefslogtreecommitdiffstats
path: root/FileManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'FileManager.cpp')
-rw-r--r--FileManager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/FileManager.cpp b/FileManager.cpp
index 7650a2f..0025cf2 100644
--- a/FileManager.cpp
+++ b/FileManager.cpp
@@ -180,7 +180,9 @@ bool FileManager::save(GtkWindow *parent) {
bool FileManager::saveAs(GtkWindow *parent) {
GtkWidget *dialog = gtk_file_chooser_dialog_new(NULL, parent, GTK_FILE_CHOOSER_ACTION_SAVE,
- GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT, NULL);
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL);
+
+ gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog), TRUE);
if(filename)
gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), filename);