Bug 100472

Summary: Add Images dialogue was misleading default action "Open"
Product: [Applications] digikam Reporter: David Anderson <david>
Component: Usability-ErgonomyAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 0.7.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 7.6.0

Description David Anderson 2005-02-28 20:16:38 UTC
Version:           0.7.1 (using KDE 3.3.2-1.4.2.kde, Fedora Core release 2 (Tettnang))
Compiler:          gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)
OS:                Linux (i686) release 2.6.7-1.494.2.2

When you click on "Add Images" from the main digikam window, it opens the standard KDE open/save dialogue box. The default action is labelled "Open". It ought to be "Add Images".
Comment 1 Renchi Raju 2005-03-06 17:34:53 UTC
CVS commit by pahlibar: 



rename default "Open" button to "Add" in the add images dialog
BUGS: 100472


  M +11 -4     digikamview.cpp   1.25


--- kdeextragear-3/digikam/digikam/digikamview.cpp  #1.24:1.25
@@ -35,4 +35,5 @@
 #include <kurl.h>
 #include <kfiledialog.h>
+#include <kpushbutton.h>
 #include <klocale.h>
 #include <kapplication.h>
@@ -409,8 +410,14 @@ void DigikamView::slot_albumAddImages()
     PAlbum* palbum = dynamic_cast<PAlbum*>(album);
 
-    KURL::List urls =  KFileDialog::getOpenURLs(QString::null,
+    KFileDialog dlg(QString::null,
                                                 AlbumSettings::instance()->getImageFileFilter(),
-                                                this,
-                                                i18n("Add Images"));
+                    this, "filedialog", true);
+    dlg.setOperationMode(KFileDialog::Opening );
+    dlg.setCaption(i18n("Add Images"));
+    dlg.setMode(KFile::Files);
+    dlg.okButton()->setText(i18n("&Add"));
+    dlg.exec();          
+
+    KURL::List urls = dlg.selectedURLs();
 
     if (!urls.isEmpty())