aboutsummaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/main.cpp20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/gui/main.cpp b/src/gui/main.cpp
index 741c801..c522898 100644
--- a/src/gui/main.cpp
+++ b/src/gui/main.cpp
@@ -36,7 +36,7 @@ int
main(int argc, char** argv)
{
SharedPtr<Machina::Machine> machine;
-
+
// Load machine, if given
if (argc >= 2) {
const string filename = argv[1];
@@ -67,22 +67,14 @@ main(int argc, char** argv)
SharedPtr<Engine> engine(new Engine(driver));
- // Launch GUI
- try {
-
- Gnome::Canvas::init();
- Gtk::Main app(argc, argv);
+ Gnome::Canvas::init();
+ Gtk::Main app(argc, argv);
- driver->activate();
- MachinaGUI gui(engine);
+ driver->activate();
+ MachinaGUI gui(engine);
- app.run(*gui.window());
+ app.run(*gui.window());
- } catch (string msg) {
- cerr << "Caught exception, aborting. Error message was: " << msg << endl;
- return 1;
- }
-
return 0;
}