Commit 2c9e0eb7 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Use && for bool comparsion; fix spelling error

parent 20debf48
......@@ -818,13 +818,13 @@ void MainWindow::setRemoveWindowTitleBarAndFrame(bool frameless)
// And avoid the visibility change when we change the window flag
bool oldVisibility = isVisible();
if(frameless) {
if (frameless) {
setWindowFlags(Qt::FramelessWindowHint);
} else {
setWindowFlags(Qt::Widget);
}
if (oldVisibility & !isVisible()) {
if (oldVisibility && !isVisible()) {
setVisible(true);
}
}
......
......@@ -102,7 +102,7 @@ public:
/**
* @brief Set the framless state
* @brief Set the frameless state
*
* @param frameless
*/
......
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