Verified Commit b07d918c authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

TabsModel: Ignore useless isMobileDefault property binding changes to the same value

parent 2f39e097
......@@ -226,12 +226,14 @@ bool TabsModel::isMobileDefault() const
void TabsModel::setIsMobileDefault(bool def)
{
m_isMobileDefault = def;
emit isMobileDefaultChanged();
if (m_isMobileDefault != def) {
m_isMobileDefault = def;
emit isMobileDefaultChanged();
// used in initialization of the tab
if (m_tabs.count() == 1) {
setIsMobile(0, def);
// used in initialization of the tab
if (m_tabs.count() == 1) {
setIsMobile(0, def);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment