Commit ccb3e316 authored by JanKusanagi's avatar JanKusanagi

Specify author name in title, for standalone posts

parent 1d287511
......@@ -138,13 +138,14 @@ Post::Post(ASActivity *activity,
// If it's a standalone post, set window title and restore size
if (standalone)
{
QString windowTitle = tr("Post", "Noun, not verb")
+ ": "
+ activity->object()->getTranslatedType(postType)
+ " - Dianara";
this->setWindowTitle(tr("Post", "Noun, not verb")
+ " ("
+ activity->object()->getTranslatedType(postType)
+ ") - "
+ activity->object()->author()->getNameWithFallback()
+ " - Dianara");
this->setWindowIcon(QIcon::fromTheme("mail-message",
QIcon(":/images/button-edit.png")));
this->setWindowTitle(windowTitle);
this->setWindowFlags(Qt::Window);
this->setWindowModality(Qt::NonModal);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment