Skip to content

Commit 93481ed

Browse files
author
kapad
committed
make a more informative error dialog in mucjoindlg #1
1 parent 06d7c9e commit 93481ed

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/mucjoindlg.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,12 @@ void MUCJoinDlg::doJoin(MucJoinReason r)
331331
}
332332

333333
if (!account_->groupChatJoin(host, room, nick, pass, !ui_.ck_history->isChecked())) {
334-
QMessageBox::information(this, tr("Error"), tr("You are in or joining this room already!"));
334+
QMessageBox::information(
335+
this,
336+
tr("Error"),
337+
tr("You are in or joining this room already!\n\n- Account: %1\n- Room: %2\n"
338+
).arg( account_->jid().bare(), j.bare() )
339+
);
335340
return;
336341
}
337342

0 commit comments

Comments
 (0)