mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15:52:12 +01:00
OP-834 fixed bad Q_ASSERT around effective code
This commit is contained in:
parent
538723696a
commit
8bd3c09860
@ -225,11 +225,11 @@ bool NotifyTableModel::dropMimeData( const QMimeData * data, Qt::DropAction acti
|
|||||||
// addiional check in case dropping of multiple rows
|
// addiional check in case dropping of multiple rows
|
||||||
if(rows + direction > _list.size()) continue;
|
if(rows + direction > _list.size()) continue;
|
||||||
|
|
||||||
// FIXME: suspicious Q_ASSERT around effective code
|
bool success = insertRows(rows + direction, 1, QModelIndex());
|
||||||
Q_ASSERT(insertRows(rows + direction, 1, QModelIndex()));
|
Q_ASSERT(success);
|
||||||
_list.replace(rows + direction, item);
|
_list.replace(rows + direction, item);
|
||||||
// FIXME: suspicious Q_ASSERT around effective code
|
success = removeRows(dragged, 1, QModelIndex());
|
||||||
Q_ASSERT(removeRows(dragged, 1, QModelIndex()));
|
Q_ASSERT(success);
|
||||||
if (direction == UP_DIRECTION)
|
if (direction == UP_DIRECTION)
|
||||||
++rows;
|
++rows;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user