summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-24 04:29:03 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-24 04:29:03 +0300
commit9ba40776e3b0b00235e821c1157c6b4e0245417d (patch)
tree1934b95a1c73818d9e6f6d77d04b8daa8ef79e59 /src/gui/widgets/tabs
parent3e5dbaaa903d4f4ea039902ab83259cb1e11a2f4 (diff)
downloadplus-9ba40776e3b0b00235e821c1157c6b4e0245417d.tar.gz
plus-9ba40776e3b0b00235e821c1157c6b4e0245417d.tar.bz2
plus-9ba40776e3b0b00235e821c1157c6b4e0245417d.tar.xz
plus-9ba40776e3b0b00235e821c1157c6b4e0245417d.zip
Fix asserts with missing default music files.
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r--src/gui/widgets/tabs/setup_audio.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/tabs/setup_audio.cpp b/src/gui/widgets/tabs/setup_audio.cpp
index 860a21f58..d6fc4e616 100644
--- a/src/gui/widgets/tabs/setup_audio.cpp
+++ b/src/gui/widgets/tabs/setup_audio.cpp
@@ -183,7 +183,10 @@ void Setup_Audio::apply()
{
const Map *const map = viewport->getMap();
if (map)
- soundManager.playMusic(map->getMusicFile());
+ {
+ soundManager.playMusic(map->getMusicFile(),
+ SkipError_false);
+ }
}
else
{