projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c44370e
)
fixing a bug related to wait in combination with aliases that expand to multiple...
author
Marcus Eggenberger
<egs@quassel-irc.org>
Wed, 31 Dec 2008 00:12:48 +0000
(
01:12
+0100)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Wed, 31 Dec 2008 00:12:48 +0000
(
01:12
+0100)
src/core/userinputhandler.cpp
patch
|
blob
|
history
diff --git
a/src/core/userinputhandler.cpp
b/src/core/userinputhandler.cpp
index
4b4c079
..
de56d85
100644
(file)
--- a/
src/core/userinputhandler.cpp
+++ b/
src/core/userinputhandler.cpp
@@
-504,7
+504,14
@@
void UserInputHandler::timerEvent(QTimerEvent *event) {
QObject::timerEvent(event);
return;
}
QObject::timerEvent(event);
return;
}
- Command command = _delayedCommands.take(event->timerId());
+ BufferInfo bufferInfo = _delayedCommands[event->timerId()].bufferInfo;
+ QString rawCommand = _delayedCommands[event->timerId()].command;
+ _delayedCommands.remove(event->timerId());
event->accept();
event->accept();
- handleUserInput(command.bufferInfo, command.command);
+
+ // the stored command might be the result of an alias expansion, so we need to split it up again
+ QStringList commands = rawCommand.split(QRegExp("; ?"));
+ foreach(QString command, commands) {
+ handleUserInput(bufferInfo, command);
+ }
}
}