diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:02:17 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:02:17 +0200 |
commit | b9203ee84953006547f4afd58f405874c87bf0dc (patch) | |
tree | 9e41f1533f120e9268e86658c52458630ffd718a /structures.cpp | |
parent | 3.0 (diff) | |
download | FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.tar.gz FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.tar.bz2 FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.zip |
3.1
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 31c66650..a9d386f5 100644 --- a/structures.cpp +++ b/structures.cpp @@ -123,17 +123,10 @@ void SyncConfiguration::setVariant(const Variant var) } } -wxString MainConfiguration::getSyncVariantName() -{ - const SyncConfiguration::Variant mainVariant = syncConfiguration.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) - return _("Multiple..."); - //seems to be all in sync... - switch (mainVariant) +wxString SyncConfiguration::getVariantName() const +{ + switch (getVariant()) { case SyncConfiguration::AUTOMATIC: return _("<Automatic>"); @@ -146,11 +139,24 @@ wxString MainConfiguration::getSyncVariantName() case SyncConfiguration::CUSTOM: return _("Custom"); } - return _("Error"); } +wxString MainConfiguration::getSyncVariantName() +{ + const SyncConfiguration::Variant mainVariant = syncConfiguration.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) + return _("Multiple..."); + + //seems to be all in sync... + return syncConfiguration.getVariantName(); +} + + wxString FreeFileSync::getDescription(CompareFilesResult cmpRes) { switch (cmpRes) |