Summary: | Digikam: Add images: Allows only to import local files. No sftp: ftp: :( | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Achim Bohnet <ach> |
Component: | Import-MainView | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | 0.7.0 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Achim Bohnet
2004-09-04 00:52:18 UTC
CVS commit by pahlibar: allow addition of new images from external sources supported by kio CCMAIL: 88804-done@bugs.kde.org M +7 -16 digikamview.cpp 1.15 --- kdeextragear-3/digikam/digikam/digikamview.cpp #1.14:1.15 @@ -293,20 +293,11 @@ void DigikamView::slot_albumAddImages() PAlbum* palbum = dynamic_cast<PAlbum*>(album); - QStringList list = - KFileDialog::getOpenFileNames(QString::null, + KURL::List urls = KFileDialog::getOpenURLs(QString::null, AlbumSettings::instance()->getImageFileFilter(), this, i18n("Add Images")); - KURL::List urls; - for (QStringList::Iterator it - = list.begin(); it != list.end(); ++it ) { - QFileInfo fi(*it); - if (!fi.isDir()) { - urls.append(KURL(*it)); - } - } - - if (!urls.isEmpty()) { + if (!urls.isEmpty()) + { KIO::CopyJob* job = KIO::copy(urls, palbum->getKURL(), true); |