CVS commit by markey: Allow to run scripts by double-clicking the entry. M +4 -0 scriptmanager.cpp 1.81 --- kdeextragear-1/amarok/src/scriptmanager.cpp #1.80:1.81 @@ -96,4 +96,5 @@ ScriptManager::ScriptManager( QWidget *p connect( m_base->listView, SIGNAL( currentChanged( QListViewItem* ) ), SLOT( slotCurrentChanged( QListViewItem* ) ) ); + connect( m_base->listView, SIGNAL( doubleClicked ( QListViewItem*, const QPoint&, int ) ), SLOT( slotRunScript() ) ); connect( m_base->installButton, SIGNAL( clicked() ), SLOT( slotInstallScript() ) ); @@ -408,4 +409,7 @@ ScriptManager::slotRunScript() const QString name = li->text( 0 ); + // Don't start a script twice + if ( m_scripts[name].process ) return false; + const KURL url = m_scripts[name].url; KProcIO* script = new KProcIO();