SOURCES: kdegraphics-kpdf-overwriteself.patch (NEW) - fix overwrit...
arekm
arekm at pld-linux.org
Tue Jan 24 22:55:56 CET 2006
Author: arekm Date: Tue Jan 24 21:55:56 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix overwriting issue in kpdf that didn't make for 3.5.1
---- Files affected:
SOURCES:
kdegraphics-kpdf-overwriteself.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/kdegraphics-kpdf-overwriteself.patch
diff -u /dev/null SOURCES/kdegraphics-kpdf-overwriteself.patch:1.1
--- /dev/null Tue Jan 24 22:55:56 2006
+++ SOURCES/kdegraphics-kpdf-overwriteself.patch Tue Jan 24 22:55:51 2006
@@ -0,0 +1,14 @@
+--- kdegraphics/kpdf/part.cpp 2006/01/18 21:57:05 499855
++++ kdegraphics/kpdf/part.cpp 2006/01/23 23:11:54 501814
+@@ -697,6 +697,11 @@
+ KURL saveURL = KFileDialog::getSaveURL( url().isLocalFile() ? url().url() : url().fileName(), QString::null, widget() );
+ if ( saveURL.isValid() && !saveURL.isEmpty() )
+ {
++ if (saveURL == url())
++ {
++ KMessageBox::information( widget(), i18n("You are trying to overwrite \"%1\" with itself. This is not allowed. Please save it in another location.").arg(saveURL.filename()) );
++ return;
++ }
+ if ( KIO::NetAccess::exists( saveURL, false, widget() ) )
+ {
+ if (KMessageBox::warningContinueCancel( widget(), i18n("A file named \"%1\" already exists. Are you sure you want to overwrite it?").arg(saveURL.filename()), QString::null, i18n("Overwrite")) != KMessageBox::Continue)
================================================================
More information about the pld-cvs-commit
mailing list