[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/utils/krecipes/src
From:       Jason Kivlighn <jkivlighn () gmail ! com>
Date:       2005-08-23 2:28:54
Message-ID: 1124764134.281388.26849.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 452342 by jkivlighn:

Don't give an error message if hitting cancel when given the file dialog to select a \
backup file

 M  +1 -1      krecipes.cpp  


--- trunk/extragear/utils/krecipes/src/krecipes.cpp #452341:452342
@@ -390,7 +390,7 @@
 		overwrite = KMessageBox::warningYesNo( this, QString( i18n( "File \"%1\" exists.  \
Are you sure you want to overwrite it?" ) ).arg( fileName ) );  }
 
-	if ( overwrite == KMessageBox::Yes ) {
+	if ( !fileName.isNull() && overwrite == KMessageBox::Yes ) {
 		QString errMsg;
 		if ( !m_view->database->backup( fileName, &errMsg ) )
 			KMessageBox::error( this, errMsg, i18n("Backup Failed") );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic