vtk_log->FlushOn();
vtk_log->AppendOn();
vtkOutputWindow::SetInstance(vtk_log);
+ } else if (current == "--state") {
+ window.ReadSavedStateFile(argv[i+1]);
+ i++;
}
+
} else if (parse_mode == P_SEQUENCE) {
sequence_filenames.push_back(current);
} else if (parse_mode == P_WINDOW) {
window.ApplyWindowLevelToAllImages();
}
+
+ int ret = app.exec();
+
#ifndef _WIN32
// restoring the locale, just to be clean...
setlocale(LC_NUMERIC, old_locale.c_str());
#endif
- return app.exec();
+ return ret;
}