Merge pull request #571 from felisucoibi/master

fix sorting crashing with qt5 in shared files of friends
This commit is contained in:
Cyril Soler 2016-11-16 12:10:37 +01:00 committed by GitHub
commit 188f3453fd

View File

@ -183,8 +183,9 @@ SharedFilesDialog::SharedFilesDialog(RetroshareDirModel *_tree_model,RetroshareD
// Mr.Alice: I removed this because it causes a crash for some obscur reason. Apparently when the model is changed, the proxy model cannot
// deal with the change by itself. Should I call something specific? I've no idea. Removing this does not seem to cause any harm either.
//tree_proxyModel->setDynamicSortFilter(true);
//flat_proxyModel->setDynamicSortFilter(true);
//Ghibli: set false because by default in qt5 is true and makes rs crash when sorting, all this decided by Cyril not me :D it works
tree_proxyModel->setDynamicSortFilter(false);
flat_proxyModel->setDynamicSortFilter(false);
connect(ui.filterClearButton, SIGNAL(clicked()), this, SLOT(clearFilter()));
connect(ui.filterStartButton, SIGNAL(clicked()), this, SLOT(startFilter()));