[M-git] Mahogany sources repository. branch master updated. v0.67-747-gfc849a1

Vadim Zeitlin via Mahogany-cvsupdates <[email protected]> Tue, 19 Sep 2017 11:38:07 +0000
Newsgroups gmane.mail.mahogany.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Mahogany sources repository.".

The branch, master has been updated
       via  fc849a11dace55812eb93bf49791baab372bfb78 (commit)
      from  561933693f16f918138e40f279875142daf13fed (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fc849a11dace55812eb93bf49791baab372bfb78
Author: Vadim Zeitlin <[email protected]>
Date:   Tue Sep 19 13:37:06 2017 +0200

    Fix crash in folder creation dialog with a single config source
    
    Check that we have any choice of config sources before choosing the selected
    one.

diff --git a/src/gui/wxDialogLayout.cpp b/src/gui/wxDialogLayout.cpp
index c8c6aa2..2260a0e 100644
--- a/src/gui/wxDialogLayout.cpp
+++ b/src/gui/wxDialogLayout.cpp
@@ -1281,6 +1281,11 @@ void wxProfileSettingsEditDialog::OnConfigSourceChange(wxCommandEvent& event)
 void
 wxProfileSettingsEditDialog::ApplyConfigSourceSelectedByUser(Profile& profile)
 {
+   // This method can be called even if there is only a single config source,
+   // in which case m_chcSources is null and we have nothing to do anyhow.
+   if ( !m_chcSources )
+      return;
+
    ConfigSource * const configOld =
       profile.SetConfigSourceForWriting(m_chcSources->GetSelectedSource());
 

-----------------------------------------------------------------------

Summary of changes:
 src/gui/wxDialogLayout.cpp | 5 +++++
 1 file changed, 5 insertions(+)


hooks/post-receive
-- 
Mahogany sources repository.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot