Commit a9d83ff8 authored by Kevin Kofler's avatar Kevin Kofler

Fix inverted logic introduced by revision 1091068 (apol's Qt3Support removal in libdiff2).

Patch by mangus (from bugs.kde.org attachment).
BUG: 242192
CCMAIL: aleixpol@kde.org

svn path=/trunk/KDE/kdesdk/kompare/; revision=1145313
parent 94f1dcbb
......@@ -278,9 +278,8 @@ bool KompareModelList::saveDestination( DiffModel* model )
return true;
KTemporaryFile temp;
bool correct=temp.open();
if( correct ) {
if( !temp.open() ) {
emit error( i18n( "Could not open a temporary file." ) );
temp.remove();
return false;
......@@ -591,9 +590,8 @@ bool KompareModelList::saveDiff( const QString& url, QString directory, DiffSett
m_diffTemp = new KTemporaryFile();
m_diffURL = url;
bool opened=m_diffTemp->open();
if( opened ) {
if( !m_diffTemp->open() ) {
emit error( i18n( "Could not open a temporary file." ) );
m_diffTemp->remove();
delete m_diffTemp;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment