summaryrefslogtreecommitdiffstats
path: root/profile-widget/profilewidget2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r--profile-widget/profilewidget2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 653818556..a7105b8ca 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -919,7 +919,7 @@ void ProfileWidget2::setEmptyState()
setBackgroundBrush(getColor(::BACKGROUND, isGrayscale));
dataModel->clear();
currentState = EMPTY;
- MainWindow::instance()->setEnabledToolbar(false);
+ emit enableToolbar(false);
fixBackgroundPos();
background->setVisible(true);
@@ -974,7 +974,7 @@ void ProfileWidget2::setProfileState()
MainWindow::instance()->enableShortcuts();
currentState = PROFILE;
- MainWindow::instance()->setEnabledToolbar(true);
+ emit enableToolbar(true);
toolTipItem->readPos();
setBackgroundBrush(getColor(::BACKGROUND, isGrayscale));