From: <dal...@us...> - 2012-01-16 20:35:05
|
Revision: 20826 http://jedit.svn.sourceforge.net/jedit/?rev=20826&view=rev Author: daleanson Date: 2012-01-16 20:34:59 +0000 (Mon, 16 Jan 2012) Log Message: ----------- Only show message if there is a message to show. Modified Paths: -------------- plugins/JDiffPlugin/trunk/jdiff/DualDiffManager.java Modified: plugins/JDiffPlugin/trunk/jdiff/DualDiffManager.java =================================================================== --- plugins/JDiffPlugin/trunk/jdiff/DualDiffManager.java 2012-01-16 19:27:03 UTC (rev 20825) +++ plugins/JDiffPlugin/trunk/jdiff/DualDiffManager.java 2012-01-16 20:34:59 UTC (rev 20826) @@ -113,7 +113,9 @@ sb.append(filename).append('\n'); } } - JOptionPane.showMessageDialog( view, "JDiff encountered this problem while restoring perspective:\n\nFile closed during diff:\n" + sb.toString(), "JDiff Error", JOptionPane.ERROR_MESSAGE ); + if (sb.toString().trim().length() > 0) { + JOptionPane.showMessageDialog( view, "JDiff encountered this problem while restoring perspective:\n\nFile closed during diff:\n" + sb.toString(), "JDiff Error", JOptionPane.ERROR_MESSAGE ); + } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |