Commit 5dd0e020 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't use 0/nullptr as flag

parent be721e03
......@@ -464,7 +464,7 @@ void MainWindow::switchFullscreen()
if (m_fullscreenWindow) {
// Leaving full screen mode
m_fullscreenWindow->setWindowState(nullptr);
m_fullscreenWindow->setWindowState(Qt::WindowNoState);
m_fullscreenWindow->hide();
m_tabWidget->tabBar()->setHidden(m_tabWidget->count() <= 1 && !Settings::showTabBar());
......
......@@ -69,7 +69,7 @@ int RemoteDesktopsModel::rowCount(const QModelIndex &) const
Qt::ItemFlags RemoteDesktopsModel::flags(const QModelIndex &index) const
{
if (!index.isValid())
return nullptr;
return Qt::NoItemFlags;
if (index.column() == RemoteDesktopsModel::Favorite) {
return Qt::ItemIsEnabled | Qt::ItemIsUserCheckable;
}
......
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