last_modified should eb initialized with the current program name, and then overwitten later

This commit is contained in:
Nikolaus Gullotta 2019-04-02 10:25:48 -05:00 committed by Nikolaus Gullotta
parent 7486b0b7fc
commit 6163e272eb
No known key found for this signature in database
GPG key ID: 565F60578092AA31

View file

@ -25,7 +25,7 @@ MixerSnapshot::MixerSnapshot(Session* s)
, label("snapshot")
, timestamp(time(0))
, favorite(false)
, last_modified_with("")
, last_modified_with(string_compose("%1 %2", PROGRAM_NAME, revision))
{
if(s)
_session = s;
@ -36,13 +36,11 @@ MixerSnapshot::MixerSnapshot(Session* s, string file_path)
, label("snapshot")
, timestamp(time(0))
, favorite(false)
, last_modified_with("")
, last_modified_with(string_compose("%1 %2", PROGRAM_NAME, revision))
{
if(s)
_session = s;
last_modified_with = string_compose("%1 %2", PROGRAM_NAME, revision);
if(Glib::file_test(file_path.c_str(), Glib::FILE_TEST_IS_DIR))
load_from_session(file_path);