[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdevplatform/plugins/subversion
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2009-05-27 20:02:00
Message-ID: 1243454520.326311.22616.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 973779 by apaku:

Set the Mode of the filedialog to save. We'll need to have a custom
dialog or override KUrlRequesterDialog to make sure we don't accept
existing urlSet the Mode of the filedialog to save. We'll need to have a
custom dialog or override KUrlRequesterDialog to make sure we don't
accept existing urlss

 M  +2 -0      kdevsvnplugin.cpp  


--- trunk/KDE/kdevplatform/plugins/subversion/kdevsvnplugin.cpp #973778:973779
@@ -32,6 +32,7 @@
 #include <kfile.h>
 #include <ktemporaryfile.h>
 #include <kmessagebox.h>
+#include <kfiledialog.h>
 
 #include <interfaces/iuicontroller.h>
 #include <interfaces/idocumentcontroller.h>
@@ -427,6 +428,7 @@
 
         KUrlRequesterDialog dlg(dir, i18n("Destination file/directory"), 0);
 
+        dlg.fileDialog()->setOperationMode( KFileDialog::Saving );
         if (isFile) {
             dlg.urlRequester()->setMode(KFile::File | KFile::Directory | KFile::LocalOnly);
         } else {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic