mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -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)
|
void SharedFilesDialog::preModDirectories(bool local)
|
||||||
{
|
{
|
||||||
// (cyril) what is this for??
|
if (isRemote() == local)
|
||||||
// if (isRemote() == local) {
|
return;
|
||||||
// return;
|
|
||||||
//}
|
|
||||||
|
|
||||||
std::cerr << "About to modify directories. Local=" << local << ". Temporarily disabling sorting" << std::endl;
|
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)
|
void SharedFilesDialog::postModDirectories(bool local)
|
||||||
{
|
{
|
||||||
// if (isRemote() == local) {
|
if (isRemote() == local)
|
||||||
// return;
|
return;
|
||||||
// }
|
|
||||||
std::set<std::string> expanded_indexes,selected_indexes;
|
std::set<std::string> expanded_indexes,selected_indexes;
|
||||||
|
|
||||||
saveExpandedPathsAndSelection(expanded_indexes,selected_indexes) ;
|
saveExpandedPathsAndSelection(expanded_indexes,selected_indexes) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user