Skip to content
Snippets Groups Projects
Commit 6f7cd606 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

setCurrentIndex + print arg

parent ac3a8439
No related branches found
No related tags found
1 merge request!2679apply test suite to XML serialization, and fix a number of serialization bugs (#1013); revert removal of materials argument (#1014)
Pipeline #152325 failed
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "GUI/Model/Type/ModelForSet.h" #include "GUI/Model/Type/ModelForSet.h"
#include <QObject> #include <QObject>
#include <QStringList> #include <QStringList>
#include <iostream>
#include <vector> #include <vector>
//! Non-templated base class for SetWithModel. //! Non-templated base class for SetWithModel.
...@@ -96,7 +97,10 @@ public: ...@@ -96,7 +97,10 @@ public:
void setCurrentIndex(size_t i) override void setCurrentIndex(size_t i) override
{ {
ASSERT(i < m_vec.size() || i == size_t(-1)); if (!(i < m_vec.size() || i == size_t(-1))) {
std::cerr << "setCurrentIndex i=" << i << " vs vec#=" << m_vec.size() << std::endl;
ASSERT_NEVER;
}
m_qmodel->beginResetModel(); m_qmodel->beginResetModel();
if (i != m_idx) if (i != m_idx)
m_idx = i; m_idx = i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment