gui/record_setup.cpp: avoid set empty timeshift dir

This commit is contained in:
[CST] Focus
2014-05-01 17:30:50 +04:00
parent 55167990b5
commit 858fbd217e

View File

@@ -97,8 +97,8 @@ int CRecordSetup::exec(CMenuTarget* parent, const std::string &actionKey)
timeshiftDir = g_settings.network_nfs_recordingdir + "/.timeshift"; timeshiftDir = g_settings.network_nfs_recordingdir + "/.timeshift";
safe_mkdir(timeshiftDir.c_str()); safe_mkdir(timeshiftDir.c_str());
printf("New timeshift dir: %s\n", timeshiftDir.c_str()); printf("New timeshift dir: %s\n", timeshiftDir.c_str());
CRecordManager::getInstance()->SetTimeshiftDirectory(timeshiftDir);
} }
CRecordManager::getInstance()->SetTimeshiftDirectory(timeshiftDir);
} }
return res; return res;
} }