You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (isRunningInstanceRequired == InstanceCmd::MustRun_Yes && !runningInstanceIds.contains(instanceId))
295
299
{
296
-
if (isRunningInstanceRequired == InstanceCmd::MustRun_Yes)
297
-
{
298
-
if (runningInstanceIds.contains(instanceId))
299
-
{
300
-
instanceIds.insert(instanceId);
301
-
}
302
-
else
303
-
{
304
-
errorDetails.append(QString("Instance [%1] is not running, but the (sub-) command requires a running instance.").arg(instance.toVariant().toString()));
305
-
}
306
-
}
307
-
else
308
-
{
309
-
instanceIds.insert(instanceId);
310
-
}
300
+
errorDetails.append(QString("Instance [%1] is not running, but the (sub-) command requires a running instance.").arg(instance.toVariant().toString()));
311
301
}
312
302
else
313
303
{
314
-
errorDetails.append("Not a valid instance: " + instance.toVariant().toString());
304
+
instanceIds.insert(instanceId);
315
305
}
316
306
}
317
307
}
318
308
319
-
if (instanceIds.isEmpty() && errorDetails.isEmpty() )
309
+
// Handle cases where no valid instances are found
310
+
if (instanceIds.isEmpty())
320
311
{
321
-
if (cmd.getInstanceCmdType() == InstanceCmd::No_or_Single || cmd.getInstanceCmdType() == InstanceCmd::No_or_Multi )
0 commit comments