[Chinese-commits] [fqterm] 17/76: Revert "change code style"

Boyuan Yang hosiet-guest at moszumanska.debian.org
Thu Oct 27 03:16:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

hosiet-guest pushed a commit to branch master
in repository fqterm.

commit 32fcf4cd1c7f80f4b41103ec27ba0703e95ac888
Author: Iru Cai <mytbk920423 at gmail.com>
Date:   Sat May 3 21:24:33 2014 +0800

    Revert "change code style"
    
    This reverts commit ad5f034e13797f1846d3f967e6db0f6137e1f1f3.
    May cause segfault
---
 src/fqterm/main.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/fqterm/main.cpp b/src/fqterm/main.cpp
index ae9eebb..2bdde6e 100644
--- a/src/fqterm/main.cpp
+++ b/src/fqterm/main.cpp
@@ -123,12 +123,12 @@ int main(int argc, char **argv) {
     return -1;
   }
 
-  FQTermFrame mw;
-  mw.setWindowTitle("FQTerm " + QString(FQTERM_VERSION_STRING));
-  mw.setWindowIcon(QPixmap(getPath(RESOURCE) + "pic/fqterm.png"));
-  mw.show();
+  FQTermFrame *mw = new FQTermFrame();
+  mw->setWindowTitle("FQTerm " + QString(FQTERM_VERSION_STRING));
+  mw->setWindowIcon(QPixmap(getPath(RESOURCE) + "pic/fqterm.png"));
+  mw->show();
   a.setQuitOnLastWindowClosed(false);
-  FQ_VERIFY(a.connect(&mw, SIGNAL(destroyed(QObject*)), &a, SLOT(mainWindowDestroyed(QObject*)), Qt::QueuedConnection));
-  FQ_VERIFY(a.connect(&a, SIGNAL(saveData()), &mw, SLOT(saveSetting())));
+  FQ_VERIFY(a.connect(mw, SIGNAL(destroyed(QObject*)), &a, SLOT(mainWindowDestroyed(QObject*)), Qt::QueuedConnection));
+  FQ_VERIFY(a.connect(&a, SIGNAL(saveData()), mw, SLOT(saveSetting())));
   return a.exec();
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/chinese/fqterm.git



More information about the Chinese-commits mailing list