@@ -108,11 +108,13 @@ void Categories::onCategoryOrderChanged(const std::vector<unsigned int>& cat_ord
108108
109109 if (static_cast<int>(pos) != old_pos) {
110110 int target_pos = pos;
111+ if (target_pos > old_pos)
112+ target_pos++;
111113 const bool status = beginMoveRows(QModelIndex(), old_pos, old_pos, QModelIndex(), target_pos);
112114 if (status)
113115 m_categoryOrder.move(old_pos, pos);
114116 else
115− qWarning("beginMoveRows failed");
117+ qWarning() << "beginMoveRows failed:" << old_pos << target_pos;
116118 endMoveRows();
117119 }
118120 }