Skip to content
Snippets Groups Projects
Commit 84da3fd6 authored by Jan Möbius's avatar Jan Möbius
Browse files

Bring widget to foreground when requested

Don't crash in script mode



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12457 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 377dff82
No related branches found
No related tags found
No related merge requests found
......@@ -230,6 +230,9 @@ void ScriptingPlugin::showScriptWidget( ) {
highlighterLive_->update();
highlighterLive_->rehighlight();
// Bring it to foreground
scriptWidget_->raise();
// highlighterList_->pluginPatterns_ = plugins;
// highlighterList_->functionPatterns_ = functions;
// highlighterList_->update();
......@@ -589,6 +592,9 @@ void ScriptingPlugin::showScriptInEditor(QString _code)
}
void ScriptingPlugin::clearEditor() {
if ( OpenFlipper::Options::nogui() )
return;
scriptWidget_->currentScript->clear();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment