From 8ecf455cf586da1c7285fdbc8f079cb8e4fe5a01 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Mon, 4 Jan 2010 20:45:55 +0000 Subject: fix for #678 git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3791 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/notifier/notifierwindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/notifier/notifierwindow.cpp b/src/modules/notifier/notifierwindow.cpp index d66c7996f..d6205fe4b 100644 --- a/src/modules/notifier/notifierwindow.cpp +++ b/src/modules/notifier/notifierwindow.cpp @@ -200,7 +200,10 @@ void KviNotifierWindow::addMessage(KviWindow * pWnd,const QString &szImageId,con tab = new KviNotifierWindowTab(pWnd, m_pWndTabs); } - m_pWndTabs->setCurrentWidget(tab); + //if the notifier is already visible, don't steal the focus from the current tab! + //the user could be writing a message on it (bug #678) + if(!isVisible()) + m_pWndTabs->setCurrentWidget(tab); tab->appendMessage(m); -- cgit v1.3.1-10-gc9f91