aboutsummaryrefslogtreecommitdiff
path: root/academic/scidavis/fix-gh-issue-90.patch
diff options
context:
space:
mode:
authorFellype do Nascimento <fellype(at)gmail.com>2018-08-02 19:28:41 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-08-02 19:40:39 +0700
commitd575422955ac9ac963d42218f3aae5d11fa99ad5 (patch)
treebbe3e4246f6a491bc8cfe319c04e5f8ab5b518ba /academic/scidavis/fix-gh-issue-90.patch
parent48a2f4d3e18d70293f7798f0bec7d37dc6a634ba (diff)
academic/scidavis: Patched to fix crashes.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/scidavis/fix-gh-issue-90.patch')
-rw-r--r--academic/scidavis/fix-gh-issue-90.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/academic/scidavis/fix-gh-issue-90.patch b/academic/scidavis/fix-gh-issue-90.patch
new file mode 100644
index 0000000000000..67ffca3062786
--- /dev/null
+++ b/academic/scidavis/fix-gh-issue-90.patch
@@ -0,0 +1,18 @@
+diff --git a/libscidavis/src/ApplicationWindow.cpp b/libscidavis/src/ApplicationWindow.cpp
+index 90d282a4..167debee 100644
+--- libscidavis/src/ApplicationWindow.cpp
++++ libscidavis/src/ApplicationWindow.cpp
+@@ -12521,8 +12521,11 @@ void ApplicationWindow::saveFolderAsProject(Folder *f)
+
+ void ApplicationWindow::showFolderPopupMenu(const QPoint &p, bool fromFolders)
+ {
+- if (fromFolders)
+- showFolderPopupMenuImpl(folders->itemAt(p), fromFolders)->exec(folders->mapToGlobal(p));
++ if (fromFolders) {
++ QMenu* cm = showFolderPopupMenuImpl(folders->itemAt(p), fromFolders);
++ if (cm)
++ cm->exec(folders->mapToGlobal(p));
++ }
+ else
+ showFolderPopupMenuImpl(lv->itemAt(p), fromFolders)->exec(lv->mapToGlobal(p));
+ }