OSDN Git Service

Fix bug where the external editor would force a close of the main window when the...
authorRandy Baumgarte <randy@fbn.cx>
Fri, 5 Nov 2010 11:53:57 +0000 (07:53 -0400)
committerRandy Baumgarte <randy@fbn.cx>
Wed, 15 Dec 2010 15:15:02 +0000 (10:15 -0500)
src/cx/fbn/nevernote/gui/ExternalBrowse.java

index 2218cd7..b0b63c8 100644 (file)
@@ -21,6 +21,7 @@ package cx.fbn.nevernote.gui;
 \r
 import java.util.List;\r
 \r
+import com.trolltech.qt.core.Qt.WidgetAttribute;\r
 import com.trolltech.qt.gui.QCloseEvent;\r
 import com.trolltech.qt.gui.QMdiSubWindow;\r
 \r
@@ -36,6 +37,7 @@ public class ExternalBrowse extends QMdiSubWindow {
        \r
        // Constructor\r
        public ExternalBrowse(DatabaseConnection c) {\r
+               setAttribute(WidgetAttribute.WA_QuitOnClose, false);\r
                setWindowTitle(tr("NeverNote"));\r
                conn = c;\r
                contentsChanged = new Signal4<String, String, Boolean, BrowserWindow>();\r