wayland/outputinterface: fix crash
The current mode may be nullptr
This commit is contained in:
parent
be717d5c67
commit
d03e352dbf
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ QSharedPointer<KWin::OutputMode> OutputInterface::mode() const
|
|||
|
||||
void OutputInterface::setMode(const QSharedPointer<KWin::OutputMode> &mode)
|
||||
{
|
||||
if (d->mode->size() == mode->size() && d->mode->refreshRate() == mode->refreshRate()) {
|
||||
if (d->mode == mode) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue