From b32fb73c6788dd39d391408d7d8f59ebf2ce08cd Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 31 Jul 2015 01:11:35 +0200 Subject: [PATCH] ensure firstType is initialized --- gui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 1e6e381..1a70cfe 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -1162,7 +1162,7 @@ void MainWindow::showTableViewContextMenu() return; } QMenu contextMenu(this); - FieldType firstType; + FieldType firstType = FieldType::Normal; bool allOfSameType = true; bool hasOneFieldType = false; int row = selectedIndexes.front().row();