Permalink
Browse files

Fix bug #94 Crash when closing module display window with Qt 5.8

  • Loading branch information...
gholmlund committed Feb 3, 2017
1 parent 996a598 commit 12daae636bb15bf3e2df29bb7793da1c0cdeaa6b
Showing with 9 additions and 1 deletion.
  1. +3 −0 ChangeLog
  2. +6 −1 src/frontend/displaywindow/cdisplaywindow.cpp
View
@@ -1,3 +1,6 @@
2017-02-02 Gary Holmlund <gary.holmlund@gmail.com>
* Fix bug #94 Crash when closing module display window with Qt 5.8
2017-01-26 Gary Holmlund <gary.holmlund@gmail.com>
* bug #92 Qt "More Info..." tab is blank
@@ -57,7 +57,12 @@ CDisplayWindow::CDisplayWindow(const QList<CSwordModuleInfo *> & modules, CMDIAr
m_popupMenu(nullptr),
m_displayWidget(nullptr),
m_history(nullptr) {
setAttribute(Qt::WA_DeleteOnClose); //we want to destroy this window when it is closed
// Cannot delete on close. QMdiSubWindow and this window work
// as pairs. They must be deleted in a specific order.
// QMdiSubWindow handles this procedure.
//setAttribute(Qt::WA_DeleteOnClose);
m_actionCollection = new BtActionCollection(this);
setModules(modules);

0 comments on commit 12daae6

Please sign in to comment.