[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Bchoqok=5D_libchoqok/ui=3A_BUG=3A237265_This_might_f?=
From: Mehrdad Momeny <mehrdad.momeny () gmail ! com>
Date: 2011-02-25 11:03:37
Message-ID: 20110225110337.3B999A60A6 () git ! kde ! org
[Download RAW message or body]
Git commit 7dc1e3077a08d5927de0979b168806fd2af2a637 by Mehrdad Momeny.
Committed on 18/02/2011 at 21:26.
Pushed by momeny into branch 'master'.
BUG:237265 This might fix the most unclear crash of Choqok :D (due the same crash in \
konqueror fixed this way)
M +1 -4 libchoqok/ui/postwidget.cpp
http://commits.kde.org/choqok/7dc1e3077a08d5927de0979b168806fd2af2a637
diff --git a/libchoqok/ui/postwidget.cpp b/libchoqok/ui/postwidget.cpp
index 672a84c..7dfbecc 100644
--- a/libchoqok/ui/postwidget.cpp
+++ b/libchoqok/ui/postwidget.cpp
@@ -39,7 +39,6 @@ along with this program; if not, see http://www.gnu.org/licenses/
#include <QMenu>
#include <kmenu.h>
#include <QCloseEvent>
-#include <qmutex.h>
#include "timelinewidget.h"
static const int _15SECS = 15000;
@@ -309,13 +308,11 @@ void PostWidget::setHeight()
void PostWidget::closeEvent(QCloseEvent* event)
{
- QMutex mt;
- mt.lock();
+ clearFocus();
if( !isRead() )
setReadInternal();
Q_EMIT aboutClosing(currentPost().postId, this);
event->accept();
- mt.unlock();
}
void PostWidget::mousePressEvent(QMouseEvent* ev)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic