[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/libs/kipi-plugins/gpssync
From: Gilles Caulier <caulier.gilles () free ! fr>
Date: 2006-11-23 12:40:22
Message-ID: 1164285622.165594.7621.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 607153 by cgilles:
kipi-plugins from trunk : GPSSync : More redeable report if wrtting operation files are failed
M +12 -12 plugin_gpssync.cpp
--- trunk/extragear/libs/kipi-plugins/gpssync/plugin_gpssync.cpp #607152:607153
@@ -193,9 +193,9 @@
if (dlg.exec() == KDialogBase::Accepted)
{
gpsData = dlg.getGPSInfo();
- KURL::List imageURLs = images.images();
- KURL::List updatedURLs;
- KURL::List errorURLs;
+ KURL::List imageURLs = images.images();
+ KURL::List updatedURLs;
+ QStringList errorFiles;
for( KURL::List::iterator it = imageURLs.begin() ;
it != imageURLs.end(); ++it)
@@ -222,7 +222,7 @@
}
if (!ret)
- errorURLs.append(url);
+ errorFiles.append(url.fileName());
else
updatedURLs.append(url);
}
@@ -232,12 +232,12 @@
m_interface->refreshImages(updatedURLs);
- if (!errorURLs.isEmpty())
+ if (!errorFiles.isEmpty())
{
KMessageBox::errorList(
kapp->activeWindow(),
i18n("Unable to save geographical coordinates into:"),
- errorURLs.toStringList(),
+ errorFiles,
i18n("Edit Geographical Coordinates"));
}
}
@@ -257,9 +257,9 @@
i18n("Remove Geographical Coordinates")) != KMessageBox::Yes)
return;
- KURL::List imageURLs = images.images();
- KURL::List updatedURLs;
- KURL::List errorURLs;
+ KURL::List imageURLs = images.images();
+ KURL::List updatedURLs;
+ QStringList errorFiles;
for( KURL::List::iterator it = imageURLs.begin() ;
it != imageURLs.end(); ++it)
@@ -282,7 +282,7 @@
}
if (!ret)
- errorURLs.append(url);
+ errorFiles.append(url.fileName());
else
updatedURLs.append(url);
}
@@ -292,12 +292,12 @@
m_interface->refreshImages(updatedURLs);
- if (!errorURLs.isEmpty())
+ if (!errorFiles.isEmpty())
{
KMessageBox::errorList(
kapp->activeWindow(),
i18n("Unable to remove geographical coordinates from:"),
- errorURLs.toStringList(),
+ errorFiles,
i18n("Remove Geographical Coordinates"));
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic