Skip to content

Commit

Permalink
Fix infinite recursion crash when editing Playback Groups
Browse files Browse the repository at this point in the history
[df769dc] caused a regression where TimeStretch::Save(QString) would call
TimeStretch::Save() which would call SimpleDBStorage::Save() which then calls
TimeStretch::Save(QString) causing an infinite loop.

This just makes sure we call the correct Save() method in
TimeStretch::Save(QString) to break the loop. Fixes #11492.
  • Loading branch information
Paul Harrison committed Apr 18, 2013
1 parent 1b0cd69 commit cbd78b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/playgroup.cpp
Expand Up @@ -137,7 +137,7 @@ class TimeStretch : public SpinBoxSetting, public PlayGroupDBStorage
PlayGroupDBStorage::Save();
}

virtual void Save(QString /*destination*/) { Save(); }
virtual void Save(QString destination) { PlayGroupDBStorage::Save(destination); }
};

PlayGroupConfig::PlayGroupConfig(QString _name) : name(_name)
Expand Down

0 comments on commit cbd78b8

Please sign in to comment.