From 638c5e25fa3a462099e53a04fc16dba1e83354c5 Mon Sep 17 00:00:00 2001 From: Zach H Date: Sat, 4 Mar 2017 22:36:35 -0500 Subject: [PATCH] temp fix to downloading folders (#2442) --- cockatrice/src/tab_replays.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cockatrice/src/tab_replays.cpp b/cockatrice/src/tab_replays.cpp index a0fa6764..710483c3 100644 --- a/cockatrice/src/tab_replays.cpp +++ b/cockatrice/src/tab_replays.cpp @@ -190,8 +190,13 @@ void TabReplays::actDownload() } ServerInfo_Replay const *curRight = serverDirView->getCurrentReplay(); + if (!curRight) + { + QMessageBox::information(this, tr("Downloading Replays"), tr("You cannot download replay folders at this time")); return; + } + filePath += QString("/replay_%1.cor").arg(curRight->replay_id()); Command_ReplayDownload cmd;