From a647bcf3e96fb5eb9ce9e24b34cc1ed8ab3a8278 Mon Sep 17 00:00:00 2001 From: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com> Date: Tue, 4 Oct 2016 17:31:34 -0400 Subject: [PATCH] GtkQTreeModel: remove warning about multiple columns This warning is useless and the wrapper works for models with multiple columns, at least in the cases currently implemented in LRC. Change-Id: If0bfb819f77099946df9d87ad54820562ddf9993 --- src/models/gtkqtreemodel.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/models/gtkqtreemodel.cpp b/src/models/gtkqtreemodel.cpp index daa9d81f..de1ceb40 100644 --- a/src/models/gtkqtreemodel.cpp +++ b/src/models/gtkqtreemodel.cpp @@ -441,10 +441,8 @@ gtk_q_tree_model_new(QAbstractItemModel *model, size_t n_columns, ...) /* we have to assume only one column */ int first = topLeft.row(); int last = bottomRight.row(); - if (topLeft.column() != bottomRight.column() ) { - g_warning("more than one column is not supported!"); - } - /* the first idx IS topLeft, the reset are his siblings */ + + /* the first idx IS topLeft, the rest are his siblings */ GtkTreeIter iter; QModelIndex idx = topLeft; iter.stamp = stamp; -- GitLab