From efc67dc19e35eced19333de8759da4a132d03d33 Mon Sep 17 00:00:00 2001 From: Randy Baumgarte Date: Fri, 5 Nov 2010 07:53:57 -0400 Subject: [PATCH] Fix bug where the external editor would force a close of the main window when the external editor was closed while the main window was minimized to the tray. --- src/cx/fbn/nevernote/gui/ExternalBrowse.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cx/fbn/nevernote/gui/ExternalBrowse.java b/src/cx/fbn/nevernote/gui/ExternalBrowse.java index 2218cd7..b0b63c8 100644 --- a/src/cx/fbn/nevernote/gui/ExternalBrowse.java +++ b/src/cx/fbn/nevernote/gui/ExternalBrowse.java @@ -21,6 +21,7 @@ package cx.fbn.nevernote.gui; import java.util.List; +import com.trolltech.qt.core.Qt.WidgetAttribute; import com.trolltech.qt.gui.QCloseEvent; import com.trolltech.qt.gui.QMdiSubWindow; @@ -36,6 +37,7 @@ public class ExternalBrowse extends QMdiSubWindow { // Constructor public ExternalBrowse(DatabaseConnection c) { + setAttribute(WidgetAttribute.WA_QuitOnClose, false); setWindowTitle(tr("NeverNote")); conn = c; contentsChanged = new Signal4(); -- 2.11.0