forked from qt-creator/qt-creator
Core: Disentangle SettingsDatabase access
There's nothing inherently tied to the main window here. Change-Id: I48ae09777a4408fc4c955d23fdee3483d8a97dd0 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "mainwindow.h"
|
||||
#include "modemanager.h"
|
||||
#include "session.h"
|
||||
#include "settingsdatabase.h"
|
||||
#include "themechooser.h"
|
||||
|
||||
#include "actionmanager/actionmanager.h"
|
||||
@@ -96,6 +97,7 @@ CorePlugin::~CorePlugin()
|
||||
DesignMode::destroyModeIfRequired();
|
||||
|
||||
delete m_mainWindow;
|
||||
SettingsDatabase::destroy();
|
||||
setCreatorTheme(nullptr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user