Commit dd54283a authored by Dirk Wilden's avatar Dirk Wilden
Browse files

null pointer protection

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@3669 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ec291d17
...@@ -42,8 +42,10 @@ ...@@ -42,8 +42,10 @@
void DataControlPlugin::slotPopupRemove ( ) { void DataControlPlugin::slotPopupRemove ( ) {
QItemSelectionModel* selection = view_->selectionModel(); QItemSelectionModel* selection = view_->selectionModel();
if (selection == 0) return;
// Get all selected rows // Get all selected rows
QModelIndexList indexList = selection->selectedRows ( 0 ); QModelIndexList indexList = selection->selectedRows();
for ( int i = 0 ; i < indexList.size() ; ++i) { for ( int i = 0 ; i < indexList.size() ; ++i) {
......
Supports Markdown
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