summaryrefslogtreecommitdiff
path: root/RealtimeSync/mainDialog.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:05:53 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:05:53 +0200
commit618dfb51d93898632830f1b87443d3f748780871 (patch)
treebac520a2e261154f8d35b0cb8aa345f5ab373811 /RealtimeSync/mainDialog.cpp
parent3.4 (diff)
downloadFreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.gz
FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.bz2
FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.zip
3.5
Diffstat (limited to 'RealtimeSync/mainDialog.cpp')
-rw-r--r--RealtimeSync/mainDialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/RealtimeSync/mainDialog.cpp b/RealtimeSync/mainDialog.cpp
index ec53cd02..72b19a35 100644
--- a/RealtimeSync/mainDialog.cpp
+++ b/RealtimeSync/mainDialog.cpp
@@ -37,7 +37,6 @@ MainDialog::MainDialog(wxDialog *dlg,
m_bpButtonAddFolder->SetBitmapLabel(GlobalResources::getInstance().getImageByName(wxT("addFolderPair")));
m_bpButtonRemoveTopFolder->SetBitmapLabel(GlobalResources::getInstance().getImageByName(wxT("removeFolderPair")));
m_buttonStart->setBitmapFront(GlobalResources::getInstance().getImageByName(wxT("startRed")));
- m_buttonStart->SetFocus();
//register key event
Connect(wxEVT_CHAR_HOOK, wxKeyEventHandler(MainDialog::OnKeyPressed), NULL, this);
@@ -81,7 +80,6 @@ MainDialog::MainDialog(wxDialog *dlg,
setConfiguration(newConfig);
- m_buttonStart->SetFocus();
Fit();
Center();
@@ -90,6 +88,8 @@ MainDialog::MainDialog(wxDialog *dlg,
wxCommandEvent dummy2(wxEVT_COMMAND_BUTTON_CLICKED);
this->OnStart(dummy2);
}
+ else
+ m_buttonStart->SetFocus(); //don't "steal" focus if program is running from sys-tray"
}
bgstack15