1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(chatform): name in window title and close detached chats

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.
This commit is contained in:
ezavod 2018-06-04 22:56:53 +02:00
parent afe7914bb7
commit 39968a313d
No known key found for this signature in database
GPG Key ID: E9FDE71887B4D083

View File

@ -109,6 +109,7 @@ ContentDialog::ContentDialog(QWidget* parent)
setMinimumSize(minSize);
setAttribute(Qt::WA_DeleteOnClose);
setObjectName("detached");
QByteArray geometry = s.getDialogGeometry();
@ -121,6 +122,8 @@ ContentDialog::ContentDialog(QWidget* parent)
SplitterRestorer restorer(splitter);
restorer.restore(s.getDialogSplitterState(), size());
username = Core::getInstance()->getUsername();
currentDialog = this;
setAcceptDrops(true);