From ebcd61f68625ccacdc352491dc5f4ddb9ea1ef6f Mon Sep 17 00:00:00 2001 From: Neil Horne Date: Wed, 15 Jun 2022 20:11:56 +1000 Subject: [PATCH] chore(cpn): Prevent unused variable compiler warning (#2042) * Prevent compiler warning * Prevent unused variable compiler warning --- companion/src/mdichild.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/companion/src/mdichild.cpp b/companion/src/mdichild.cpp index 3b3b255e1..7f9331bf4 100644 --- a/companion/src/mdichild.cpp +++ b/companion/src/mdichild.cpp @@ -1074,7 +1074,7 @@ void MdiChild::pasteModelData(const QMimeData * mimeData, const QModelIndex row, ++inserts; } } - else { + else if (msgBox.clickedButton() == cancelButton) { ok = false; } }