From 2e76385cae7b1ff3eac6aef2be4199d2702ec7fa Mon Sep 17 00:00:00 2001 From: David Kolossa Date: Mon, 16 Jun 2014 13:08:39 +0200 Subject: [PATCH 1/2] Fixed typo in INSTALL --- INSTALL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INSTALL b/INSTALL index 028ccff2f..bde991bbd 100644 --- a/INSTALL +++ b/INSTALL @@ -2,7 +2,7 @@ Building: ========= mkdir build cd build -cmake .. [CMAKE PARAMETERS] +cmake [CMAKE PARAMETERS] .. make [-jX] Common cmake parameters: From 3a0648cf2546644a5abd560a7b5b2c1034fe162a Mon Sep 17 00:00:00 2001 From: David Kolossa Date: Mon, 16 Jun 2014 15:40:28 +0200 Subject: [PATCH 2/2] ! 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. --- src/gui/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 8c72bbff9..101121b0d 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -227,7 +227,7 @@ void MainWindow::updateCopyAttributesMenu() return; } - if (!dbWidget->numberOfSelectedEntries() == 1) { + if (dbWidget->numberOfSelectedEntries() != 1) { return; }