generic: adjust to recent X11 changes

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2017-06-24 05:31:13 +00:00
parent c6fca17924
commit d0b78212f1
2 changed files with 2 additions and 2 deletions

View file

@ -361,7 +361,7 @@ void KRandRSystemTray::populateMenu(KMenu* menu)
if (screen->activeCount() != 1)
{
action = outputMenu->addAction(i18n("Disable"));
if (output->crtc() == None)
if (!output->crtc())
{
QFont font = action->font();
font.setBold(true);

View file

@ -1090,7 +1090,7 @@ namespace Oxygen
&data);
// finish if no data is found
if( data == None || n != 1 ) return false;
if( data == NULL || n != 1 ) return false;
else return *data;
}