mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
plasma: block and unblock signals on first time in launcher applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
5e7422c5c7
commit
57c6c2266c
1 changed files with 3 additions and 18 deletions
|
@ -906,14 +906,7 @@ void LauncherFavorites::slotUpdateLayout()
|
||||||
kWarning() << "invalid first-time serivce" << name;
|
kWarning() << "invalid first-time serivce" << name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
disconnect(
|
m_bookmarkmanager->blockSignals(true);
|
||||||
m_bookmarkmanager, SIGNAL(changed(QString,QString)),
|
|
||||||
this, SLOT(slotUpdateLayout())
|
|
||||||
);
|
|
||||||
disconnect(
|
|
||||||
m_bookmarkmanager, SIGNAL(bookmarksChanged(QString)),
|
|
||||||
this, SLOT(slotUpdateLayout())
|
|
||||||
);
|
|
||||||
m_bookmarkmanager->emitChanged(bookmarkgroup);
|
m_bookmarkmanager->emitChanged(bookmarkgroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -961,15 +954,7 @@ void LauncherFavorites::slotUpdateLayout()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isfirsttime) {
|
if (isfirsttime) {
|
||||||
locker.unlock();
|
m_bookmarkmanager->blockSignals(false);
|
||||||
connect(
|
|
||||||
m_bookmarkmanager, SIGNAL(changed(QString,QString)),
|
|
||||||
this, SLOT(slotUpdateLayout())
|
|
||||||
);
|
|
||||||
connect(
|
|
||||||
m_bookmarkmanager, SIGNAL(bookmarksChanged(QString)),
|
|
||||||
this, SLOT(slotUpdateLayout())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
locker.unlock();
|
locker.unlock();
|
||||||
|
@ -1779,7 +1764,7 @@ LauncherAppletWidget::LauncherAppletWidget(LauncherApplet* auncherapplet)
|
||||||
{
|
{
|
||||||
m_layout = new QGraphicsLinearLayout(Qt::Vertical, this);
|
m_layout = new QGraphicsLinearLayout(Qt::Vertical, this);
|
||||||
m_toplayout = new QGraphicsLinearLayout(Qt::Horizontal, m_layout);
|
m_toplayout = new QGraphicsLinearLayout(Qt::Horizontal, m_layout);
|
||||||
m_toplayout->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
|
m_toplayout->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);
|
||||||
m_layout->addItem(m_toplayout);
|
m_layout->addItem(m_toplayout);
|
||||||
|
|
||||||
m_user = new KUser(KUser::UseEffectiveUID);
|
m_user = new KUser(KUser::UseEffectiveUID);
|
||||||
|
|
Loading…
Add table
Reference in a new issue