]> git.saurik.com Git - wxWidgets.git/commitdiff
Check if wxOVERWRITE_PROMPT style flag exists in the gtk2.8 native overwrite prompt...
authorMart Raudsepp <leio@gentoo.org>
Fri, 19 May 2006 02:38:09 +0000 (02:38 +0000)
committerMart Raudsepp <leio@gentoo.org>
Fri, 19 May 2006 02:38:09 +0000 (02:38 +0000)
where with 2.8+ compile and runtime version of gtk overwrite prompt always happens if the file already exists -
even if the style flag is not present. Fixes my introduced oversight and bug #1484020.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/filedlg.cpp

index 547045ec5ce865a8480517a81f8e58c1abd26df5..41e7703303b0cbab2eed11bbfac543aa9cfbcc16 100644 (file)
@@ -204,7 +204,7 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
                 wxConvFileName->cWX2MB(defaultFileName));
 
 #if GTK_CHECK_VERSION(2,7,3)
-            if (!gtk_check_version(2,7,3))
+            if ((style & wxOVERWRITE_PROMPT) && !gtk_check_version(2,7,3))
                 gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(m_widget), TRUE);
 #endif
         }