[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Thu Mar 3 20:54:00 CET 2005
CVS commit by arwalker:
Handle deprecated mehods.
M +13 -3 vectorsavedialog.ui.h 1.11
--- kdeextragear-2/kst/kst/vectorsavedialog.ui.h #1.10:1.11
@@ -44,5 +44,10 @@ void VectorSaveDialog::save()
tf.close();
#endif
+
+#if KDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
+ if (KIO::NetAccess::exists(url, false, 0L)) {
+#else
if (KIO::NetAccess::exists(url)) {
+#endif
int rc = KMessageBox::warningYesNo(this, i18n("File %1 exists. Overwrite?").arg(url.prettyURL()), i18n("Kst"));
if (rc == KMessageBox::No) {
@@ -78,5 +83,10 @@ void VectorSaveDialog::save()
tf.close();
#endif
+
+#if KDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
+ if (KIO::NetAccess::exists(url2, false, 0L)) {
+#else
if (KIO::NetAccess::exists(url2)) {
+#endif
int rc = KMessageBox::warningYesNo(this, i18n("File %1 exists. Overwrite?").arg(url2.prettyURL()), i18n("Kst"));
if (rc == KMessageBox::No) {
More information about the Kst
mailing list