[PATCH 13/13] In Qt5 reset() is depricated.

Anton Lundin glance at acc.umu.se
Wed Jan 15 00:30:44 UTC 2014


Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 qt-ui/models.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 82aa312..63b97ad 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -1577,7 +1577,8 @@ void TablePrintModel::insertRow(int index)
 
 void TablePrintModel::callReset()
 {
-	reset();
+	beginResetModel();
+	endResetModel();
 }
 
 QVariant TablePrintModel::data(const QModelIndex &index, int role) const
-- 
1.8.3.2



More information about the subsurface mailing list