summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a45c66f)
errors (e.g. ERR_NOSUCHNICK) are now displayed in the user buffer
}
void Client::recvMessage(const Message &msg) {
}
void Client::recvMessage(const Message &msg) {
- Buffer *b = buffer(msg.bufferInfo());
- b->appendMsg(msg);
- networkModel()->updateBufferActivity(msg);
+ if(msg.type() == Message::Error) {
+ Buffer *b = buffer(msg.bufferInfo().bufferId());
+ if(b) {
+ b->appendMsg(msg);
+ networkModel()->updateBufferActivity(msg);
+ } else {
+ //TODO: display message in the status buffer
+ b = buffer(msg.bufferInfo());
+ b->appendMsg(msg);
+ networkModel()->updateBufferActivity(msg);
+ }
+ } else {
+ Buffer *b = buffer(msg.bufferInfo());
+ b->appendMsg(msg);
+ networkModel()->updateBufferActivity(msg);
+ }
if(msg.type() == Message::Plain || msg.type() == Message::Notice || msg.type() == Message::Action) {
const Network *net = network(msg.bufferInfo().networkId());
if(msg.type() == Message::Plain || msg.type() == Message::Notice || msg.type() == Message::Action) {
const Network *net = network(msg.bufferInfo().networkId());
break;
// Server error messages, display them in red. First param will be appended.
case 401: case 402: case 403: case 404: case 406: case 408: case 415: case 421: case 442:
break;
// Server error messages, display them in red. First param will be appended.
case 401: case 402: case 403: case 404: case 406: case 408: case 415: case 421: case 442:
- { QString p = params.takeFirst();
- emit displayMsg(Message::Error, "", params.join(" ") + " " + p, prefix);
- break;
+ { QString channelName = params.takeFirst();
+ emit displayMsg(Message::Error, "", params.join(" ") + " " + channelName, prefix);
+ emit displayMsg(Message::Error, channelName, params.join(" ") + " " + channelName, prefix);
+ break;
}
// Server error messages which will be displayed with a colon between the first param and the rest
case 413: case 414: case 423: case 441: case 444: case 461:
}
// Server error messages which will be displayed with a colon between the first param and the rest
case 413: case 414: case 423: case 441: case 444: case 461:
systrayMenu->addAction(ui.actionQuit);
systray->setContextMenu(systrayMenu);
systrayMenu->addAction(ui.actionQuit);
systray->setContextMenu(systrayMenu);
+ // systray->setContextMenuPolicy();
systray->show();
connect(systray, SIGNAL(activated( QSystemTrayIcon::ActivationReason )),
systray->show();
connect(systray, SIGNAL(activated( QSystemTrayIcon::ActivationReason )),
void MainWin::systrayActivated( QSystemTrayIcon::ActivationReason activationReason) {
if (activationReason == QSystemTrayIcon::Trigger) {
void MainWin::systrayActivated( QSystemTrayIcon::ActivationReason activationReason) {
if (activationReason == QSystemTrayIcon::Trigger) {
+ if(isMinimized()) {
+ if(isMaximized()) {
+ showMaximized();
+ } else {
+ showNormal();
+ }
+ }
+ raise();
+ activateWindow();
+ } else {
quasselVersion = "0.2.0-pre";
quasselDate = "2008-02-05";
quasselVersion = "0.2.0-pre";
quasselDate = "2008-02-05";
//! Minimum client build number the core needs
clientBuildNeeded = 464;
//! Minimum client build number the core needs
clientBuildNeeded = 464;