mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
[Cleanup] QTimer::start() restarts timer if it is already running
This commit is contained in:
parent
a99f954930
commit
f9d3c102ec
|
@ -322,7 +322,6 @@ void BookmarksFilterModel::setFilterFixedString(const QString &pattern)
|
|||
{
|
||||
m_pattern = pattern;
|
||||
|
||||
m_filterTimer->stop();
|
||||
m_filterTimer->start();
|
||||
}
|
||||
|
||||
|
|
|
@ -109,7 +109,6 @@ void BookmarksToolbar::refresh()
|
|||
|
||||
void BookmarksToolbar::bookmarksChanged()
|
||||
{
|
||||
m_updateTimer->stop();
|
||||
m_updateTimer->start();
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,6 @@ void DesktopNotification::show()
|
|||
ui->text->setText(m_text);
|
||||
|
||||
if (!m_settingPosition) {
|
||||
m_timer->stop();
|
||||
m_timer->setInterval(m_timeout);
|
||||
m_timer->start();
|
||||
}
|
||||
|
|
|
@ -529,7 +529,6 @@ void HistoryFilterModel::setFilterFixedString(const QString &pattern)
|
|||
{
|
||||
m_pattern = pattern;
|
||||
|
||||
m_filterTimer->stop();
|
||||
m_filterTimer->start();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user