Commit 800db2c2 authored by Dirk Wilden's avatar Dirk Wilden

null pointer protection

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@3669 383ad7c9-94d9-4d36-a494-682f7c89f535
parent f5368222
......@@ -41,9 +41,11 @@
void DataControlPlugin::slotPopupRemove ( ) {
QItemSelectionModel* selection = view_->selectionModel();
if (selection == 0) return;
// Get all selected rows
QModelIndexList indexList = selection->selectedRows ( 0 );
QModelIndexList indexList = selection->selectedRows();
for ( int i = 0 ; i < indexList.size() ; ++i) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment