Commit 19513cf1 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix warning

enum constant in boolean context -Wint-in-bool-context]
parent 1b154911
......@@ -814,7 +814,7 @@ KisView *KisMainWindow::activeView() const
bool KisMainWindow::openDocument(const QUrl &url, OpenFlags flags)
if (!QFile(url.toLocalFile()).exists()) {
if (!flags && BatchMode) {
if (!(flags & BatchMode)) {
QMessageBox::critical(0, i18nc("@title:window", "Krita"), i18n("The file %1 does not exist.", url.url()));
d->recentFiles->removeUrl(url); //remove the file from the recent-opened-file-list
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