]> git.saurik.com Git - wxWidgets.git/commitdiff
Add an informational message to the file picker page of widgets sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 9 Sep 2012 13:35:12 +0000 (13:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 9 Sep 2012 13:35:12 +0000 (13:35 +0000)
No real changes, just indicate that clicking the "Set initial directory"
button was indeed taken into account.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/widgets/filepicker.cpp

index d1468bf30ef39a35296ab2daf6510ea73573de62..19944f6af1fc815f1b2e07e04a4982a4aa2f0a79 100644 (file)
@@ -297,7 +297,9 @@ void FilePickerWidgetsPage::UpdateFilePickerMode()
 
 void FilePickerWidgetsPage::OnButtonSetDir(wxCommandEvent& WXUNUSED(event))
 {
-    m_filePicker->SetInitialDirectory(m_textInitialDir->GetValue());
+    const wxString& dir = m_textInitialDir->GetValue();
+    m_filePicker->SetInitialDirectory(dir);
+    wxLogMessage("Initial directory set to \"%s\"", dir);
 }
 
 void FilePickerWidgetsPage::OnButtonReset(wxCommandEvent& WXUNUSED(event))