diff --git a/osx/dialogxml/dlogutil.cpp b/osx/dialogxml/dlogutil.cpp index 8e66d6c2..680606c0 100644 --- a/osx/dialogxml/dlogutil.cpp +++ b/osx/dialogxml/dlogutil.cpp @@ -459,7 +459,7 @@ cStrDlog& cStrDlog::setRecordHandler(record_callback_t rec){ } void cStrDlog::show(){ - play_sound(sound); + if(sound > 0) play_sound(sound); dlg.run(); } diff --git a/osx/dialogxml/dlogutil.h b/osx/dialogxml/dlogutil.h index c6d1f609..fb4891ba 100644 --- a/osx/dialogxml/dlogutil.h +++ b/osx/dialogxml/dlogutil.h @@ -25,7 +25,7 @@ typedef std::function record_callback_t; class cStrDlog { static std::string getFileName(short n_strs, ePicType type, bool hasTitle); cDialog dlg; - short sound; + short sound = -1; record_callback_t rec_f; bool hasRecord; const ePicType type;