! binds stronger than ==

This should just avoid useless copying if more than 1 attribute is
selected (and the option to copy attributes is unavailable).

This also fixes a clang warning.
This commit is contained in:
David Kolossa 2014-06-16 15:40:28 +02:00
parent 2e76385cae
commit 3a0648cf25

View File

@ -227,7 +227,7 @@ void MainWindow::updateCopyAttributesMenu()
return;
}
if (!dbWidget->numberOfSelectedEntries() == 1) {
if (dbWidget->numberOfSelectedEntries() != 1) {
return;
}