Bug 100472 - Add Images dialogue was misleading default action "Open"
Summary: Add Images dialogue was misleading default action "Open"
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-Ergonomy (show other bugs)
Version: 0.7.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-28 20:16 UTC by David Anderson
Modified: 2022-01-20 04:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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())