aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/android/androidplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/android/androidplugin.cpp')
-rw-r--r--src/plugins/android/androidplugin.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/android/androidplugin.cpp b/src/plugins/android/androidplugin.cpp
index abe632e25b8..68dfed60a83 100644
--- a/src/plugins/android/androidplugin.cpp
+++ b/src/plugins/android/androidplugin.cpp
@@ -136,7 +136,8 @@ class AndroidPlugin final : public ExtensionSystem::IPlugin
void askUserAboutAndroidSetup()
{
NANOTRACE_SCOPE("Android", "AndroidPlugin::askUserAboutAndroidSetup");
- if (!Core::ICore::infoBar()->canInfoBeAdded(kSetupAndroidSetting))
+ Utils::InfoBar *infoBar = Core::ICore::infoBar();
+ if (!infoBar->canInfoBeAdded(kSetupAndroidSetting))
return;
Utils::InfoBarEntry
@@ -154,7 +155,7 @@ class AndroidPlugin final : public ExtensionSystem::IPlugin
},
{},
Utils::InfoBarEntry::ButtonAction::SuppressPersistently);
- Core::ICore::infoBar()->addInfo(info);
+ infoBar->addInfo(info);
}
};