diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:03:20 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:03:20 +0200 |
commit | 528635604eea1d8c679a3d038e2f00030ef72444 (patch) | |
tree | 9c3cbec29aa7d3e209939662e040b9342c9e7400 /structures.cpp | |
parent | 3.1 (diff) | |
download | FreeFileSync-528635604eea1d8c679a3d038e2f00030ef72444.tar.gz FreeFileSync-528635604eea1d8c679a3d038e2f00030ef72444.tar.bz2 FreeFileSync-528635604eea1d8c679a3d038e2f00030ef72444.zip |
3.2
Diffstat (limited to 'structures.cpp')
-rw-r--r-- | structures.cpp | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/structures.cpp b/structures.cpp index a9d386f5..8653f43a 100644 --- a/structures.cpp +++ b/structures.cpp @@ -7,14 +7,7 @@ using FreeFileSync::SyncConfiguration; using FreeFileSync::MainConfiguration; -Zstring FreeFileSync::defaultIncludeFilter() -{ - static Zstring include(DefaultStr("*")); //include all files/folders - return include; -} - - -Zstring FreeFileSync::defaultExcludeFilter() +Zstring FreeFileSync::standardExcludeFilter() { #ifdef FFS_WIN static Zstring exclude(wxT("\ @@ -145,15 +138,27 @@ wxString SyncConfiguration::getVariantName() const wxString MainConfiguration::getSyncVariantName() { - const SyncConfiguration::Variant mainVariant = syncConfiguration.getVariant(); + const SyncConfiguration firstSyncCfg = + firstPair.altSyncConfig.get() ? + firstPair.altSyncConfig->syncConfiguration : + syncConfiguration; //fallback to main sync cfg + + const SyncConfiguration::Variant firstVariant = firstSyncCfg.getVariant(); //test if there's a deviating variant within the additional folder pairs for (std::vector<FolderPairEnh>::const_iterator i = additionalPairs.begin(); i != additionalPairs.end(); ++i) - if (i->altSyncConfig.get() && i->altSyncConfig->syncConfiguration.getVariant() != mainVariant) + { + const SyncConfiguration::Variant thisVariant = + i->altSyncConfig.get() ? + i->altSyncConfig->syncConfiguration.getVariant() : + syncConfiguration.getVariant(); + + if (thisVariant != firstVariant) return _("Multiple..."); + } //seems to be all in sync... - return syncConfiguration.getVariantName(); + return firstSyncCfg.getVariantName(); } @@ -260,3 +265,4 @@ wxString FreeFileSync::getSymbol(SyncOperation op) return wxEmptyString; } + |