From d575422955ac9ac963d42218f3aae5d11fa99ad5 Mon Sep 17 00:00:00 2001 From: Fellype do Nascimento Date: Thu, 2 Aug 2018 19:28:41 +0700 Subject: academic/scidavis: Patched to fix crashes. Signed-off-by: Willy Sudiarto Raharjo --- academic/scidavis/fix-gh-issue-90.patch | 18 ++++++++++++++++++ academic/scidavis/scidavis.SlackBuild | 6 +++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 academic/scidavis/fix-gh-issue-90.patch (limited to 'academic') diff --git a/academic/scidavis/fix-gh-issue-90.patch b/academic/scidavis/fix-gh-issue-90.patch new file mode 100644 index 0000000000..67ffca3062 --- /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)); + } diff --git a/academic/scidavis/scidavis.SlackBuild b/academic/scidavis/scidavis.SlackBuild index eb2f44118d..53589845d0 100644 --- a/academic/scidavis/scidavis.SlackBuild +++ b/academic/scidavis/scidavis.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=scidavis VERSION=${VERSION:-1.23} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -76,6 +76,10 @@ grep -rl "qwtplot3d/" libscidavis/src/ | xargs sed -i "s: