[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenox/konq-embed/dropin/khtml
From: Eva Brucherseifer <eva () kde ! org>
Date: 2006-06-17 13:35:00
Message-ID: 1150551300.419276.16133.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 552316 by eva:
allow user to cancel a download before actually starting it
M +6 -2 khtml_ext.cpp
--- trunk/kdenox/konq-embed/dropin/khtml/khtml_ext.cpp #552315:552316
@@ -127,6 +127,8 @@
do {
query = KMessageBox::Yes;
destURL = KFileDialog::getSaveURL( name, filter, parent, caption );
+ if (destURL.isEmpty())
+ return;
#ifdef _QT_QPE_
QStringList types = QStringList::split('/', mimeType);
QString major = types[0];
@@ -155,10 +157,12 @@
QFileInfo info( destURL.path() );
if( info.exists() ) {
// TODO: use KIO::RenameDlg (shows more information)
- query = KMessageBox::warningContinueCancel( parent, i18n( "A file named \
\"%1\" already exists. " "Are you sure you want to overwrite it?" ).arg( \
info.fileName() ), i18n( "Overwrite File?" ), i18n( "Overwrite" ) ); + query \
= KMessageBox::warningYesNoCancel( parent, i18n( "A file named \"%1\" already exists. \
" "Are you sure you want to overwrite it?" ).arg( info.fileName() ), i18n( "Overwrite \
File?" ), i18n( "Overwrite" ) ); }
}
- } while ( query == KMessageBox::Cancel );
+ } while ( query == KMessageBox::No );
+ if (query == KMessageBox::Cancel)
+ return;
if ( destURL.isValid() )
saveURL(url, destURL, metadata, cacheId, f);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic