diff options
| author | Peter Penz <[email protected]> | 2008-04-08 19:08:23 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-04-08 19:08:23 +0000 |
| commit | 6c3a2002b49c783df8bffba8f2c6c3f48d37904e (patch) | |
| tree | 11033120e43d9722424f935d1d5483453f325397 /src/dolphinview.cpp | |
| parent | 15ede69da8cc5f107b96a51af5ad8f76bb0424ce (diff) | |
Bypassed a Qt-issue where enabling the menu-animation for QApplication emits a clicked() signal during the context menu is open. I got no bug-number from the Trolltech tasktracker yet, I'll update the number xxxxxx by the real number as soon as I received the bug-number.
BUG: 155574
svn path=/trunk/KDE/kdebase/apps/; revision=794872
Diffstat (limited to 'src/dolphinview.cpp')
| -rw-r--r-- | src/dolphinview.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 869d052af..7b0ac8947 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -69,6 +69,7 @@ DolphinView::DolphinView(QWidget* parent, m_showPreview(false), m_loadingDirectory(false), m_storedCategorizedSorting(false), + m_isContextMenuOpen(false), m_mode(DolphinView::IconsView), m_topLayout(0), m_controller(0), @@ -747,7 +748,8 @@ void DolphinView::triggerItem(const KFileItem& item) return; } - if (item.isNull()) { + // TODO: the m_isContextMenuOpen check is a workaround for Qt-issue xxxxxx + if (item.isNull() || m_isContextMenuOpen) { return; } @@ -768,7 +770,9 @@ void DolphinView::openContextMenu(const QPoint& pos) item = fileItem(index); } + m_isContextMenuOpen = true; // TODO: workaround for Qt-issue xxxxxx emit requestContextMenu(item, url()); + m_isContextMenuOpen = false; } void DolphinView::dropUrls(const KUrl::List& urls, |
