[kde-doc-english] [trojita] src/Gui: GUI: make sure the composer always has a window title

Jan Kundrát jkt at flaska.net
Wed May 7 19:52:35 UTC 2014


Git commit b12a40669b8af26d56b7d507682d0d81ee88cc8d by Jan Kundrát.
Committed on 07/05/2014 at 19:47.
Pushed by jkt into branch 'master'.

GUI: make sure the composer always has a window title

Simply opening the composer as a new fresh mail, without replying to an existing
subject, would leave the window title uninitialized, which means that the user
would get an ugly "trojita" instead of a nice, localized "Compose mail".

M  +1    -0    src/Gui/ComposeWidget.cpp

http://commits.kde.org/trojita/b12a40669b8af26d56b7d507682d0d81ee88cc8d

diff --git a/src/Gui/ComposeWidget.cpp b/src/Gui/ComposeWidget.cpp
index 1fb02dc..9575f65 100644
--- a/src/Gui/ComposeWidget.cpp
+++ b/src/Gui/ComposeWidget.cpp
@@ -161,6 +161,7 @@ ComposeWidget::ComposeWidget(MainWindow *mainWindow, QSettings *settings, MSA::M
     connect(ui->mailText, SIGNAL(sendRequest()), SLOT(send()));
     connect(ui->mailText, SIGNAL(textChanged()), SLOT(setMessageUpdated()));
     connect(ui->subject, SIGNAL(textChanged(QString)), SLOT(updateWindowTitle()));
+    updateWindowTitle();
 
     FromAddressProxyModel *proxy = new FromAddressProxyModel(this);
     proxy->setSourceModel(m_mainWindow->senderIdentitiesModel());


More information about the kde-doc-english mailing list