mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 16:39:29 -05:00
added back the test for local/remote in SharedFilesDialog as it reduces the load anyway
This commit is contained in:
parent
4ef1b08ee8
commit
d01644c854
@ -880,10 +880,8 @@ void LocalSharedFilesDialog::openfolder()
|
||||
|
||||
void SharedFilesDialog::preModDirectories(bool local)
|
||||
{
|
||||
// (cyril) what is this for??
|
||||
// if (isRemote() == local) {
|
||||
// return;
|
||||
//}
|
||||
if (isRemote() == local)
|
||||
return;
|
||||
|
||||
std::cerr << "About to modify directories. Local=" << local << ". Temporarily disabling sorting" << std::endl;
|
||||
|
||||
@ -988,9 +986,9 @@ void SharedFilesDialog::recursRestoreExpandedItems(const QModelIndex& index, con
|
||||
|
||||
void SharedFilesDialog::postModDirectories(bool local)
|
||||
{
|
||||
// if (isRemote() == local) {
|
||||
// return;
|
||||
// }
|
||||
if (isRemote() == local)
|
||||
return;
|
||||
|
||||
std::set<std::string> expanded_indexes,selected_indexes;
|
||||
|
||||
saveExpandedPathsAndSelection(expanded_indexes,selected_indexes) ;
|
||||
|
Loading…
Reference in New Issue
Block a user