diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-08-19 09:04:58 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-08-19 09:04:58 +0200 |
commit | eb747e08b78d8630413b9bdb3a96108ccfcc2ac8 (patch) | |
tree | c6edecbc9c79e08dcb03d0248f2840a057fc8d24 /application/MainWindow.cpp | |
parent | 67eca08b2260f19ff296c0b6cb73eb3b0479e4b2 (diff) | |
download | MultiMC-eb747e08b78d8630413b9bdb3a96108ccfcc2ac8.tar MultiMC-eb747e08b78d8630413b9bdb3a96108ccfcc2ac8.tar.gz MultiMC-eb747e08b78d8630413b9bdb3a96108ccfcc2ac8.tar.lz MultiMC-eb747e08b78d8630413b9bdb3a96108ccfcc2ac8.tar.xz MultiMC-eb747e08b78d8630413b9bdb3a96108ccfcc2ac8.zip |
NOISSUE fix minor memory leaks
Diffstat (limited to 'application/MainWindow.cpp')
-rw-r--r-- | application/MainWindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index 2749860b..c91f5256 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -436,7 +436,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new MainWindow view = new GroupView(ui->centralWidget); view->setSelectionMode(QAbstractItemView::SingleSelection); - view->setItemDelegate(new ListViewDelegate()); + // FIXME: leaks ListViewDelegate + view->setItemDelegate(new ListViewDelegate(this)); view->setFrameShape(QFrame::NoFrame); // do not show ugly blue border on the mac view->setAttribute(Qt::WA_MacShowFocusRect, false); |