[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Sun Apr 17 17:28:53 CEST 2005
CVS commit by staikos:
stat before attempting download, and don't rebuild the URL implicitly
M +12 -2 kstdatasource.cpp 1.67
--- kdeextragear-2/kst/kst/kstdatasource.cpp #1.66:1.67
@@ -238,11 +238,21 @@ static QString obtainFile(const QString&
}
+#if KDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
+ // FIXME: come up with a way to indicate the "widget" and fill it in here so
+ // that KIO dialogs are associated with the proper window
+ if (!KIO::NetAccess::exists(url, true, 0L)) {
+#else
+ if (!KIO::NetAccess::exists(url, true)) {
+#endif
+ return QString::null;
+ }
+
QString tmpFile;
#if KDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
// FIXME: come up with a way to indicate the "widget" and fill it in here so
// that KIO dialogs are associated with the proper window
- if (!KIO::NetAccess::download(source, tmpFile, 0L)) {
+ if (!KIO::NetAccess::download(url, tmpFile, 0L)) {
#else
- if (!KIO::NetAccess::download(source, tmpFile)) {
+ if (!KIO::NetAccess::download(url, tmpFile)) {
#endif
return QString::null;
More information about the Kst
mailing list