mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
kdeplasma-addons: set the drag timer to zero after killing it in spellcheck applet
note: killTimer() would rampage if the timer ID is not m_dragTimer Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
a704ea60c9
commit
d76f51d31c
1 changed files with 4 additions and 2 deletions
|
@ -90,6 +90,7 @@ void SpellCheck::dragLeaveEvent(QGraphicsSceneDragDropEvent *event)
|
|||
{
|
||||
if (m_dragTimer) {
|
||||
killTimer(m_dragTimer);
|
||||
m_dragTimer = 0;
|
||||
}
|
||||
|
||||
Plasma::Applet::dragLeaveEvent(event);
|
||||
|
@ -99,6 +100,7 @@ void SpellCheck::dropEvent(QGraphicsSceneDragDropEvent *event)
|
|||
{
|
||||
if (m_dragTimer) {
|
||||
killTimer(m_dragTimer);
|
||||
m_dragTimer = 0;
|
||||
}
|
||||
|
||||
if (!KUrl::List::canDecode(event->mimeData())) {
|
||||
|
@ -166,9 +168,9 @@ void SpellCheck::timerEvent(QTimerEvent *event)
|
|||
if (!m_spellingDialog || !m_spellingDialog->isVisible()) {
|
||||
toggleDialog(false);
|
||||
}
|
||||
killTimer(m_dragTimer);
|
||||
m_dragTimer = 0;
|
||||
}
|
||||
|
||||
killTimer(event->timerId());
|
||||
}
|
||||
|
||||
void SpellCheck::configChanged()
|
||||
|
|
Loading…
Add table
Reference in a new issue