Skip to content
Snippets Groups Projects
Commit 96bc3a75 authored by Emmanuel Lepage's avatar Emmanuel Lepage
Browse files

[ #7887 ] 7% faster load time

parent 8b4de96f
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ SFLPhoneView::SFLPhoneView(QWidget *parent) ...@@ -61,7 +61,7 @@ SFLPhoneView::SFLPhoneView(QWidget *parent)
ConfigurationManagerInterface& configurationManager = ConfigurationManagerInterfaceSingleton::getInstance(); ConfigurationManagerInterface& configurationManager = ConfigurationManagerInterfaceSingleton::getInstance();
errorWindow = new QErrorMessage(this);
callTreeModel->setTitle(i18n("Calls")); callTreeModel->setTitle(i18n("Calls"));
QPalette pal = QPalette(palette()); QPalette pal = QPalette(palette());
...@@ -110,6 +110,8 @@ void SFLPhoneView::loadWindow() ...@@ -110,6 +110,8 @@ void SFLPhoneView::loadWindow()
///Return the error window ///Return the error window
QErrorMessage * SFLPhoneView::getErrorWindow() QErrorMessage * SFLPhoneView::getErrorWindow()
{ {
if (!errorWindow)
errorWindow = new QErrorMessage(this);
return errorWindow; return errorWindow;
} }
...@@ -228,7 +230,7 @@ void SFLPhoneView::action(Call* call, call_action action) ...@@ -228,7 +230,7 @@ void SFLPhoneView::action(Call* call, call_action action)
call->actionPerformed(action); call->actionPerformed(action);
} }
catch(const char * msg) { catch(const char * msg) {
errorWindow->showMessage(QString(msg)); getErrorWindow()->showMessage(QString(msg));
} }
updateWindowCallState(); updateWindowCallState();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment