Mentions légales du service

Skip to content
Snippets Groups Projects

Enable plugin window without trace opened

Merged Mathieu Faverge requested to merge plugins/enable_wo_traces into master
5 files
+ 74
73
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -814,23 +814,17 @@ void Interface_graphic::on_about_triggered(){
"</a>.<br /><br />"));
}
void Interface_graphic::on_show_plugins_triggered() {
if(_core->get_trace() != NULL) {
void Interface_graphic::on_show_plugins_triggered()
{
if(_plugin_window == NULL) { //Creation of the window
_plugin_window = new Plugin_window( _core, this );
}
if(_plugin_window == NULL) { //Creation of the window
_plugin_window = new Plugin_window(_core, this);
}
if( _core->get_trace() != NULL ) {
_plugin_window->update_trace();
_plugin_window->show();
// TODO create actions as for the recent files menu in order to open at the good tab
}
else {
error("Must load a trace before applying plugins");
}
_plugin_window->show();
}
Loading