Steffen Möller pushed to branch master at Debian Med / gentle
Commits: 4769cdb6 by Steffen Moeller at 2023-07-30T20:19:40+02:00 Added DoNotShowBoxAboutMarkersLoading.patch to changes file. - - - - - 2 changed files: - + debian/patches/DoNotShowBoxAboutMarkersLoading.patch - debian/patches/series Changes: ===================================== debian/patches/DoNotShowBoxAboutMarkersLoading.patch ===================================== @@ -0,0 +1,39 @@ +Description: Do not show modal dialog box to indicate markers to have been loaded. +Author: Steffen Moeller <[email protected]> +Forwarded: no + +Index: gentle/MyFrame.cpp +=================================================================== +--- gentle.orig/MyFrame.cpp ++++ gentle/MyFrame.cpp +@@ -136,15 +136,21 @@ MyFrame::MyFrame(wxWindow *parent, + // Load DNA markers + wxString marker_file = myapp()->homedir + myapp()->slash + _T("marker.txt") ; + wxTextFile tf ( marker_file ) ; +- if ( tf.Open ( wxConvUTF8 ) ) wxSafeShowMessage ( marker_file , marker_file ) ; +- for ( unsigned int a = 0 ; a < tf.GetLineCount() ; a++ ) +- { +- wxString s = tf.GetLine ( a ) ; +- s = s.Trim().Trim(false) ; +- if ( s.IsEmpty() ) continue ; // Skip blank lines +- if ( s.Left ( 1 ) == _T("#") ) continue ; // Skip comments +- dna_marker.Add ( s ) ; +- } ++ if ( tf.Open ( wxConvUTF8 ) ) { ++ //wxSafeShowMessage ( marker_file , marker_file ) ; ++ for ( unsigned int a = 0 ; a < tf.GetLineCount() ; a++ ) ++ { ++ wxString s = tf.GetLine ( a ) ; ++ s = s.Trim().Trim(false) ; ++ if ( s.IsEmpty() ) continue ; // Skip blank lines ++ if ( s.Left ( 1 ) == _T("#") ) continue ; // Skip comments ++ dna_marker.Add ( s ) ; ++ } ++ wxPrintf("I: Successfully opened marker file on '%s'\n",marker_file); ++ } else { ++ //wxSafeShowMessage ( marker_file , marker_file ) ; ++ wxPrintf("W: Failed to open marker file on '%s'\n",marker_file); ++ } + } + + /** \brief Destructor ===================================== debian/patches/series ===================================== @@ -9,3 +9,4 @@ wx3.0-compat.patch fix-format-codes.patch wx3.2-compat.patch FontSelection.patch +DoNotShowBoxAboutMarkersLoading.patch View it on GitLab: https://salsa.debian.org/med-team/gentle/-/commit/4769cdb6dd897da6f53c73b0f10f72607b0834be -- View it on GitLab: https://salsa.debian.org/med-team/gentle/-/commit/4769cdb6dd897da6f53c73b0f10f72607b0834be You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
