mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-04 12:24:24 -04: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
1 changed files with 5 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue