Skip to content
Permalink
Browse files

Single selection only. Segfaults resolved

  • Loading branch information
mbernasocchi authored and pka committed Dec 8, 2010
1 parent 2ced86c commit b6e8c8dd1706bebf7a76ba1df9b29728e84c1740
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/plugins/globe/globe_plugin_dialog.cpp
@@ -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()
@@ -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);

0 comments on commit b6e8c8d

Please sign in to comment.
You can’t perform that action at this time.