Skip to content

Commit

Permalink
Single selection only. Segfaults resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
mbernasocchi authored and pka committed Jul 5, 2011
1 parent 2ced86c commit b6e8c8d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/plugins/globe/globe_plugin_dialog.cpp
Expand Up @@ -210,11 +210,7 @@

void QgsGlobePluginDialog::on_elevationRemove_clicked()
{
QList< QTableWidgetItem* > si = elevationDatasourcesWidget->selectedItems();
for(int i = 0; i < si.count(); i++)
{
elevationDatasourcesWidget->removeRow( elevationDatasourcesWidget->row(si.at(i)) );
}
elevationDatasourcesWidget->removeRow( elevationDatasourcesWidget->currentRow() );
}

void QgsGlobePluginDialog::readElevationDatasourcesFromSettings()
Expand All @@ -226,8 +222,6 @@
settings.setArrayIndex(i);
QTableWidgetItem *type = new QTableWidgetItem(settings.value("type").toString());
QTableWidgetItem *uri = new QTableWidgetItem(settings.value("uri").toString());
// uri->setFlags( Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled);
// type->setFlags( Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled);
elevationDatasourcesWidget->setRowCount(1+i);
elevationDatasourcesWidget->setItem(i, 0, type);
elevationDatasourcesWidget->setItem(i, 1, uri);
Expand Down

0 comments on commit b6e8c8d

Please sign in to comment.