Commit 0d3953c0 authored by Jan Möbius's avatar Jan Möbius

Typo that got triggered if qtscripttools were not available.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13480 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 5df5949d
...@@ -71,11 +71,10 @@ ScriptingPlugin::ScriptingPlugin() : ...@@ -71,11 +71,10 @@ ScriptingPlugin::ScriptingPlugin() :
highlighterLive_(0), highlighterLive_(0),
highlighterList_(0), highlighterList_(0),
lastFile_(""), lastFile_(""),
debuggerButton_(0), debuggerButton_(0)
#ifdef QT_SCRIPTTOOLS_LIB #ifdef QT_SCRIPTTOOLS_LIB
debugger_(0) ,debugger_(0)
#endif #endif
{ {
} }
...@@ -151,6 +150,7 @@ void ScriptingPlugin::pluginsInitialized() { ...@@ -151,6 +150,7 @@ void ScriptingPlugin::pluginsInitialized() {
connect (debuggerButton_, SIGNAL( triggered() ), this, SLOT( slotDebuggerButton() ) ); connect (debuggerButton_, SIGNAL( triggered() ), this, SLOT( slotDebuggerButton() ) );
#else #else
debuggerButton_->setEnabled(false); debuggerButton_->setEnabled(false);
debuggerButton_->setToolTip(tr("QtScriptTools library not available. Debugger is not available!"));
#endif #endif
toolBar->addSeparator(); toolBar->addSeparator();
...@@ -223,7 +223,7 @@ void ScriptingPlugin::pluginsInitialized() { ...@@ -223,7 +223,7 @@ void ScriptingPlugin::pluginsInitialized() {
emit getScriptingEngine( engine ); emit getScriptingEngine( engine );
debugger_ = new QScriptEngineDebugger; debugger_ = new QScriptEngineDebugger;
if ( OpenFlipperSettings().value("Scripting/QtScriptDebugger",true).toBool() ) if ( OpenFlipperSettings().value("Scripting/QtScriptDebugger",false).toBool() )
debugger_->attachTo(engine); debugger_->attachTo(engine);
#endif #endif
} }
...@@ -417,8 +417,6 @@ void ScriptingPlugin::slotExecuteScriptButton() { ...@@ -417,8 +417,6 @@ void ScriptingPlugin::slotExecuteScriptButton() {
void ScriptingPlugin::slotDebuggerButton() { void ScriptingPlugin::slotDebuggerButton() {
std::cerr << "Debuggerbutton" << std::endl;
#ifdef QT_SCRIPTTOOLS_LIB #ifdef QT_SCRIPTTOOLS_LIB
QScriptEngine* engine; QScriptEngine* engine;
emit getScriptingEngine( engine ); emit getScriptingEngine( engine );
......
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