mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05:00
disable sorting while editing network view
This commit is contained in:
parent
b5bfddd1bc
commit
6a570afb84
@ -393,6 +393,8 @@ void NetworkDialog::insertConnect()
|
|||||||
|
|
||||||
/* get a link to the table */
|
/* get a link to the table */
|
||||||
QTreeWidget *connectWidget = ui.connectTreeWidget;
|
QTreeWidget *connectWidget = ui.connectTreeWidget;
|
||||||
|
/* disable sorting while editing the table */
|
||||||
|
connectWidget->setSortingEnabled(false);
|
||||||
|
|
||||||
//remove items
|
//remove items
|
||||||
int index = 0;
|
int index = 0;
|
||||||
@ -560,7 +562,10 @@ void NetworkDialog::insertConnect()
|
|||||||
}
|
}
|
||||||
connectWidget->addTopLevelItem(self_item);
|
connectWidget->addTopLevelItem(self_item);
|
||||||
|
|
||||||
connectWidget->update(); /* update display */
|
/* enable sorting */
|
||||||
|
connectWidget->setSortingEnabled(true);
|
||||||
|
/* update display */
|
||||||
|
connectWidget->update();
|
||||||
|
|
||||||
if (ui.filterLineEdit->text().isEmpty() == false) {
|
if (ui.filterLineEdit->text().isEmpty() == false) {
|
||||||
filterItems(ui.filterLineEdit->text());
|
filterItems(ui.filterLineEdit->text());
|
||||||
|
Loading…
Reference in New Issue
Block a user