Fixed segfault in QApplication::exec by copying argc and argv into ui class

also reenabled writing to the QPlainTextEdit
This commit is contained in:
Darren VanBuren 2017-07-24 05:51:13 -07:00
parent 13f5fbf8b0
commit 65d123ce2c
4 changed files with 15 additions and 7 deletions

4
ui.cpp
View file

@ -1,7 +1,9 @@
#include "ui.h"
ui::ui(int argc, char **argv) {
app = new QApplication(argc, argv);
this->argc = argc;
this->argv = argv;
app = new QApplication(this->argc, this->argv);
mainWindow = new QWidget();
mainWindow->resize(1280, 720);
mainWindow->setWindowTitle("oksirc - early Qt test");