[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: branches/KDE/3.5/kdegraphics/kpdf
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2006-01-23 23:11:56
Message-ID: 1138057916.840895.5295.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 501814 by aacid:
Don't let people overwrite a pdf with itself while open as this DESTROYS the document \
and anyway it's a useless thing to do. i18n guys sorry for adding a new message, but \
this is grave enough. Coolo, any chance we can backport this without the messagebox \
to 3.5.1?
CCMAIL: kde-i18n-doc@kde.org
CCMAIL: coolo@kde.org
M +5 -0 part.cpp
--- branches/KDE/3.5/kdegraphics/kpdf/part.cpp #501813: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)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic