diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:05:53 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:05:53 +0200 |
commit | 618dfb51d93898632830f1b87443d3f748780871 (patch) | |
tree | bac520a2e261154f8d35b0cb8aa345f5ab373811 /ui/settingsDialog.cpp | |
parent | 3.4 (diff) | |
download | FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.gz FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.bz2 FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.zip |
3.5
Diffstat (limited to 'ui/settingsDialog.cpp')
-rw-r--r-- | ui/settingsDialog.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/ui/settingsDialog.cpp b/ui/settingsDialog.cpp index 754f9e01..5199b987 100644 --- a/ui/settingsDialog.cpp +++ b/ui/settingsDialog.cpp @@ -11,7 +11,7 @@ #include "../shared/customButton.h" #include "../synchronization.h" #include "../shared/stringConv.h" -#include "util.h" +#include "../shared/util.h" #include <wx/dnd.h> #include "../shared/dragAndDrop.h" #include "../shared/fileHandling.h" @@ -874,10 +874,9 @@ void BatchDialog::showNotebookpage(wxWindow* page, const wxString& pageName, boo { int windowPosition = -1; for (size_t i = 0; i < m_notebookSettings->GetPageCount(); ++i) - if ( static_cast<wxWindow*>(m_notebookSettings->GetPage(i)) == - static_cast<wxWindow*>(page)) + if (m_notebookSettings->GetPage(i) == page) { - windowPosition = i; + windowPosition = static_cast<int>(i); break; } @@ -1260,8 +1259,8 @@ void BatchDialog::addFolderPair(const std::vector<FreeFileSync::FolderPairEnh>& i->localFilter); } //set size of scrolled window - const int visiblePairs = std::min(additionalFolderPairs.size() + 1, MAX_FOLDER_PAIRS); //up to MAX_FOLDER_PAIRS pairs shall be shown - m_scrolledWindow6->SetMinSize(wxSize( -1, pairHeight * visiblePairs)); + const size_t visiblePairs = std::min(additionalFolderPairs.size() + 1, MAX_FOLDER_PAIRS); //up to MAX_FOLDER_PAIRS pairs shall be shown + m_scrolledWindow6->SetMinSize(wxSize( -1, pairHeight * static_cast<int>(visiblePairs))); //update controls m_scrolledWindow6->Fit(); //adjust scrolled window size @@ -1291,8 +1290,8 @@ void BatchDialog::removeAddFolderPair(const int pos) additionalFolderPairs.erase(additionalFolderPairs.begin() + pos); //remove last element in vector //set size of scrolled window - const int visiblePairs = std::min(additionalFolderPairs.size() + 1, MAX_FOLDER_PAIRS); //up to MAX_FOLDER_PAIRS pairs shall be shown - m_scrolledWindow6->SetMinSize(wxSize(-1, pairHeight * visiblePairs)); + const size_t visiblePairs = std::min(additionalFolderPairs.size() + 1, MAX_FOLDER_PAIRS); //up to MAX_FOLDER_PAIRS pairs shall be shown + m_scrolledWindow6->SetMinSize(wxSize(-1, pairHeight * static_cast<int>(visiblePairs))); //update controls m_scrolledWindow6->Fit(); //adjust scrolled window size |