Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(chatform): name in window title and close detached chats
Browse files Browse the repository at this point in the history
This displays the name of the currently used account in the window title
of detached chats. Also closes all open chats when switching back to one
window.
  • Loading branch information
ezavod committed Jun 4, 2018
1 parent afe7914 commit 39968a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/widget/contentdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ ContentDialog::ContentDialog(QWidget* parent)

setMinimumSize(minSize);
setAttribute(Qt::WA_DeleteOnClose);
setObjectName("detached");

QByteArray geometry = s.getDialogGeometry();

Expand All @@ -121,6 +122,8 @@ ContentDialog::ContentDialog(QWidget* parent)
SplitterRestorer restorer(splitter);
restorer.restore(s.getDialogSplitterState(), size());

username = Core::getInstance()->getUsername();

currentDialog = this;
setAcceptDrops(true);

Expand Down

0 comments on commit 39968a3

Please sign in to comment.