From 38d60fe62726b38f115c55c6285c1ba1835af99d Mon Sep 17 00:00:00 2001 From: lordmulder Date: Wed, 22 Dec 2010 23:45:36 +0100 Subject: [PATCH] Fix context menu in progress dialog. --- src/Config.h | 2 +- src/Dialog_About.cpp | 2 +- src/Dialog_Processing.cpp | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Config.h b/src/Config.h index f7be0b95..889d9cf9 100644 --- a/src/Config.h +++ b/src/Config.h @@ -25,7 +25,7 @@ #define VER_LAMEXP_MAJOR 4 #define VER_LAMEXP_MINOR_HI 0 #define VER_LAMEXP_MINOR_LO 0 -#define VER_LAMEXP_BUILD 181 +#define VER_LAMEXP_BUILD 182 #define VER_LAMEXP_SUFFIX TechPreview /* diff --git a/src/Dialog_About.cpp b/src/Dialog_About.cpp index fadf4582..dc86e96a 100644 --- a/src/Dialog_About.cpp +++ b/src/Dialog_About.cpp @@ -40,7 +40,7 @@ #include //Helper macros -#define LINK(URL) QString("↳%2").arg(URL).arg(URL) +#define LINK(URL) QString("%2").arg(URL).arg(URL) #define CONTRIBUTOR(LANG, CNTR, ICON) QString("  %2  %3").arg(ICON, LANG, CNTR); #define VSTR(BASE,TOOL,FORMAT) QString(BASE).arg(lamexp_version2string(FORMAT, lamexp_tool_version(TOOL))) diff --git a/src/Dialog_Processing.cpp b/src/Dialog_Processing.cpp index d70873b9..6ca6fffa 100644 --- a/src/Dialog_Processing.cpp +++ b/src/Dialog_Processing.cpp @@ -398,7 +398,10 @@ void ProcessingDialog::logViewDoubleClicked(const QModelIndex &index) void ProcessingDialog::contextMenuTriggered(const QPoint &pos) { - m_contextMenu->popup(view_log->mapToGlobal(pos)); + if(pos.x() <= view_log->width() && pos.y() <= view_log->height() && pos.x() >= 0 && pos.y() >= 0) + { + m_contextMenu->popup(view_log->mapToGlobal(pos)); + } } void ProcessingDialog::contextMenuActionTriggered(void) -- 2.11.0