[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeextragear-1/amarok/src
From: Mark Kretschmann <markey () web ! de>
Date: 2005-04-26 10:35:14
Message-ID: 20050426103514.D27B0662 () office ! kde ! org
[Download RAW message or body]
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();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic