Summary: | Add Images dialogue was misleading default action "Open" | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | David Anderson <david> |
Component: | Usability-Ergonomy | Assignee: | 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 | |
Sentry Crash Report: |
Description
David Anderson
2005-02-28 20:16:38 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()) |