When deleting temp files, remove from the recent file list. Closes #1540

* If the UI was launched with a filename as a parameter to open the capture, it
  will be added to the recent capture file list. Only later (relatively
  speaking) if we make a capture connection will we realise that it is temporary
  and potentially delete the file. If we do so, remove the capture from the
  recent file list.
This commit is contained in:
baldurk
2019-10-10 12:19:41 +01:00
parent 4a6235d9b7
commit e9dda8343f
9 changed files with 100 additions and 26 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ void ReplayManager::OpenCapture(const QString &capturefile, const ReplayOptions
void ReplayManager::DeleteCapture(const rdcstr &capture, bool local)
{
if(IsRunning())
if(IsRunning() && !m_Thread->isCurrentThread())
{
AsyncInvoke([this, capture, local](IReplayController *) { DeleteCapture(capture, local); });
return;