[QT] some mac specifiy cleanup (memory handling, unnecessary code)

This commit is contained in:
Jonas Schnelli
2015-03-13 15:40:53 +01:00
parent 89e70e931d
commit 8b60808c1e
3 changed files with 7 additions and 10 deletions

View File

@@ -68,7 +68,6 @@ void MacDockIconHandler::setMainWindow(QMainWindow *window) {
MacDockIconHandler::~MacDockIconHandler()
{
[this->m_dockIconClickEventHandler release];
delete this->m_dummyWidget;
this->setMainWindow(NULL);
}
@@ -118,6 +117,11 @@ MacDockIconHandler *MacDockIconHandler::instance()
return s_instance;
}
void MacDockIconHandler::cleanup()
{
delete s_instance;
}
void MacDockIconHandler::handleDockIconClickEvent()
{
if (this->mainWindow)