mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +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
|
||||
if(rows + direction > _list.size()) continue;
|
||||
|
||||
// FIXME: suspicious Q_ASSERT around effective code
|
||||
Q_ASSERT(insertRows(rows + direction, 1, QModelIndex()));
|
||||
bool success = insertRows(rows + direction, 1, QModelIndex());
|
||||
Q_ASSERT(success);
|
||||
_list.replace(rows + direction, item);
|
||||
// FIXME: suspicious Q_ASSERT around effective code
|
||||
Q_ASSERT(removeRows(dragged, 1, QModelIndex()));
|
||||
success = removeRows(dragged, 1, QModelIndex());
|
||||
Q_ASSERT(success);
|
||||
if (direction == UP_DIRECTION)
|
||||
++rows;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user