File tree 1 file changed +1
-7
lines changed
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 210
210
211
211
void QgsGlobePluginDialog::on_elevationRemove_clicked ()
212
212
{
213
- QList< QTableWidgetItem* > si = elevationDatasourcesWidget->selectedItems ();
214
- for (int i = 0 ; i < si.count (); i++)
215
- {
216
- elevationDatasourcesWidget->removeRow ( elevationDatasourcesWidget->row (si.at (i)) );
217
- }
213
+ elevationDatasourcesWidget->removeRow ( elevationDatasourcesWidget->currentRow () );
218
214
}
219
215
220
216
void QgsGlobePluginDialog::readElevationDatasourcesFromSettings ()
226
222
settings.setArrayIndex (i);
227
223
QTableWidgetItem *type = new QTableWidgetItem (settings.value (" type" ).toString ());
228
224
QTableWidgetItem *uri = new QTableWidgetItem (settings.value (" uri" ).toString ());
229
- // uri->setFlags( Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled);
230
- // type->setFlags( Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled);
231
225
elevationDatasourcesWidget->setRowCount (1 +i);
232
226
elevationDatasourcesWidget->setItem (i, 0 , type);
233
227
elevationDatasourcesWidget->setItem (i, 1 , uri);
You can’t perform that action at this time.
0 commit comments