Commit f50fbde1 authored by Martin Flöser's avatar Martin Flöser
Browse files

Always emit Client::captionChanged when the caption changed

With ddf3536f a regression got
introduced resulting in Client::captionChanged not being emitted if
Client::setCaption was called without the force parameter.

The regression is only in master branch.

BUG: 383444

Test Plan: Added test case passes

Reviewers: #kwin, #plasma

Subscribers: plasma-devel, kwin

Tags: #kwin

Differential Revision:
parent f9e0e8a9
......@@ -414,7 +414,6 @@ void X11ClientTest::testCaptionChanges()
QEXPECT_FAIL("", "BUG 383444", Continue);
QCOMPARE(client->caption(), QStringLiteral("bar"));
......@@ -1431,8 +1431,10 @@ void Client::setCaption(const QString& _s, bool force)
if (!s[i].isPrint())
s[i] = QChar(u' ');
cap_normal = s;
if (!force)
if (!force) {
emit captionChanged();
bool reset_name = force;
bool was_suffix = (!cap_suffix.isEmpty());
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