preserve order of actions
This commit is contained in:
parent
d5d0d97441
commit
136ea88ec4
@ -260,7 +260,7 @@ void AppletInterface::setAction(const QString &name, const QString &text, const
|
||||
a->addAction(name, action);
|
||||
|
||||
Q_ASSERT(!m_actions.contains(name));
|
||||
m_actions.insert(name);
|
||||
m_actions.append(name);
|
||||
|
||||
if (!m_actionSignals) {
|
||||
m_actionSignals = new QSignalMapper(this);
|
||||
@ -296,7 +296,7 @@ void AppletInterface::removeAction(const QString &name)
|
||||
delete action;
|
||||
}
|
||||
|
||||
m_actions.remove(name);
|
||||
m_actions.removeAll(name);
|
||||
}
|
||||
|
||||
QAction *AppletInterface::action(QString name) const
|
||||
|
@ -317,7 +317,7 @@ protected:
|
||||
AbstractJsAppletScript *m_appletScriptEngine;
|
||||
|
||||
private:
|
||||
QSet<QString> m_actions;
|
||||
QStringList m_actions;
|
||||
QSignalMapper *m_actionSignals;
|
||||
QString m_currentConfig;
|
||||
QMap<QString, Plasma::ConfigLoader*> m_configs;
|
||||
|
Loading…
Reference in New Issue
Block a user