From 5c001b170a16dd5013bad8af298aeb9841f1044b Mon Sep 17 00:00:00 2001 From: Christian Heimlich Date: Tue, 14 Feb 2023 09:40:59 -0500 Subject: [PATCH 1/2] Fix empty platform data when enqueuing add. app via CPlay The database query result wasn't being advanced to the first record and so when the platform of the additional app's parent was checked an empty string was always received. --- src/command/c-play.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/command/c-play.cpp b/src/command/c-play.cpp index f7abdd9..e70b10b 100644 --- a/src/command/c-play.cpp +++ b/src/command/c-play.cpp @@ -175,8 +175,11 @@ ErrorCode CPlay::enqueueAutomaticTasks(bool& wasStandalone, QUuid targetId) return ErrorCode::SQL_ERROR; } + // Advance result to only record + parentResult.result.next(); + // Determine platform (don't bother building entire game object since only one value is needed) - QString platform = parentResult.size != 1 ? "" : parentResult.result.value(Fp::Db::Table_Game::COL_PLATFORM).toString(); + QString platform = parentResult.result.value(Fp::Db::Table_Game::COL_PLATFORM).toString(); // Enqueue enqueueError = enqueueAdditionalApp(addApp, platform, Task::Stage::Primary); From 27d950de0d24c251f03887c61537c94bb9d68644 Mon Sep 17 00:00:00 2001 From: Christian Heimlich Date: Tue, 14 Feb 2023 09:53:14 -0500 Subject: [PATCH 2/2] Bump version --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6827c0d..113873a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.21.1) # Project # NOTE: DON'T USE TRAILING ZEROS IN VERSIONS project(CLIFp - VERSION 0.9.3 + VERSION 0.9.3.1 LANGUAGES CXX DESCRIPTION "Command-line Interface for Flashpoint" )