Commit 84da3fd6 authored by Jan Möbius's avatar Jan Möbius

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
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment