[rkward/work/frameworks-Mac] rkward: Avoid an early crash is resource files could not be found.
Thomas Friedrichsmeier
null at kde.org
Thu Jun 1 18:19:50 UTC 2017
Git commit d0b6bb5529a6c772e6d34e7aaa5b2559f6629ec2 by Thomas Friedrichsmeier.
Committed on 01/06/2017 at 18:18.
Pushed by tfry into branch 'work/frameworks-Mac'.
Avoid an early crash is resource files could not be found.
Likely RKWard will still crash shortly after, but at least it will
display a message about not finding its resources, first.
M +1 -1 rkward/rkward.cpp
https://commits.kde.org/rkward/d0b6bb5529a6c772e6d34e7aaa5b2559f6629ec2
diff --git a/rkward/rkward.cpp b/rkward/rkward.cpp
index 5907ebf1..aed5f2ac 100644
--- a/rkward/rkward.cpp
+++ b/rkward/rkward.cpp
@@ -157,7 +157,7 @@ RKWardMainWindow::RKWardMainWindow () : KParts::MainWindow ((QWidget *)0, (Qt::W
QMenu *menu = dynamic_cast<QMenu*>(guiFactory ()->container ("import", this));
if (menu) open_any_action->addAction (menu->menuAction ());
menu = dynamic_cast<QMenu*>(guiFactory ()->container ("export", this));
- save_any_action->addAction (menu->menuAction ());
+ if (menu) save_any_action->addAction (menu->menuAction ());
RKComponentMap::initialize ();
More information about the rkward-tracker
mailing list