[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Bkdevplatform/1=2E2=5D_plugins/patchreview/libdiff2?=
From: Milian Wolff <mail () milianw ! de>
Date: 2011-02-07 17:35:12
Message-ID: 20110207173512.7EE61A609B () git ! kde ! org
[Download RAW message or body]
Git commit 2c08f3e790bade7c51594780442e312331f12559 by Milian Wolff.
Committed on 07/02/11 at 18:35.
Pushed by mwolff into branch '1.2'.
don't try to read file if it was not set, removes warning
M +3 -0 plugins/patchreview/libdiff2/komparemodellist.cpp
http://commits.kde.org/kdevplatform/2c08f3e790bade7c51594780442e312331f12559
diff --git a/plugins/patchreview/libdiff2/komparemodellist.cpp \
b/plugins/patchreview/libdiff2/komparemodellist.cpp index 86e910f..48308e1 100644
--- a/plugins/patchreview/libdiff2/komparemodellist.cpp
+++ b/plugins/patchreview/libdiff2/komparemodellist.cpp
@@ -236,6 +236,9 @@ bool KompareModelList::openDirAndDiff()
{
clear();
+ if ( m_info->localDestination.isEmpty() )
+ return false;
+
if ( parseDiffOutput( readFile( m_info->localDestination ) ) != 0 )
{
emit error( i18n( "<qt>No models or no differences, this file: <b>%1</b>, is not a \
valid diff file.</qt>", m_info->destination.url() ) );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic