Version: 0.7.0-cvs (using KDE 3.2.3, (3.1)) Compiler: gcc version 3.3.4 (Debian 1:3.3.4-7) OS: Linux (i686) release 2.6.8-ach-1-686 Album -> Import -> Add images allows only to import local files. Please use of kio framework ;) (Especially anoying currently is that only in only informed about only file:/ supported after pressing okay. And not as soon as a directory URL != ^file:/.* is entered.)
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);