[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegraphics/kpdf
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2006-01-23 23:14:54
Message-ID: 1138058094.584272.5706.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 501817 by aacid:
Fordwardport 501814
Niedakh i've not ported that to oKular as that is probably backend related (xpdf not \
able to cope with someone overwriting the file it has open)
CCMAIL: djurban@pld-dc.org
M +5 -0 part.cpp
--- trunk/KDE/kdegraphics/kpdf/part.cpp #501816:501817
@@ -692,6 +692,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