[kwin_wayland] Add assert in Display::setRunning

Making the impossible condition an assert instead of a return.
This commit is contained in:
Martin Gräßlin 2014-09-03 20:04:31 +02:00
parent 2ccaa4342a
commit 7003d80173

View file

@ -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);
}