[kwin_wayland] Add assert in Display::setRunning
Making the impossible condition an assert instead of a return.
This commit is contained in:
parent
2ccaa4342a
commit
7003d80173
1 changed files with 1 additions and 3 deletions
|
@ -110,9 +110,7 @@ void Display::terminate()
|
|||
|
||||
void Display::setRunning(bool running)
|
||||
{
|
||||
if (m_running == running) {
|
||||
return;
|
||||
}
|
||||
Q_ASSERT(m_running != running);
|
||||
m_running = running;
|
||||
emit runningChanged(m_running);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue