Commit f6f834f1 authored by jhammen's avatar jhammen
Browse files

remove redundant if-statement

parent 10d470fe
...@@ -166,12 +166,7 @@ void MainWindow::fileOutsideChange(QString path) { ...@@ -166,12 +166,7 @@ void MainWindow::fileOutsideChange(QString path) {
.arg(path), .arg(path),
QMessageBox::Yes | QMessageBox::Cancel); QMessageBox::Yes | QMessageBox::Cancel);
if (choice == QMessageBox::Yes) { if (choice == QMessageBox::Yes) {
if (widget) { widget->load();
widget->load();
} else {
QMessageBox::warning(this, tr("Reload Failed"), tr("Reloading %1 failed").arg(path),
QMessageBox::Ok);
}
} else { } else {
widget->fileChanged(); widget->fileChanged();
} }
......
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