From 692fb1c7ca11a9fa55898aaaaac61fdfef76bdb1 Mon Sep 17 00:00:00 2001 From: Alexander Shaduri Date: Wed, 10 Mar 2021 14:28:22 +0400 Subject: [PATCH] Fixed "drive is testing" message on startup. --- src/gsc_main_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gsc_main_window.cpp b/src/gsc_main_window.cpp index 02c5e01..414b2d0 100644 --- a/src/gsc_main_window.cpp +++ b/src/gsc_main_window.cpp @@ -1175,7 +1175,7 @@ bool GscMainWindow::add_virtual_drive(const std::string& file) bool GscMainWindow::testing_active() const { - return std::all_of(drives_.cbegin(), drives_.cend(), + return std::any_of(drives_.cbegin(), drives_.cend(), [](const auto& drive) { return drive && drive->get_test_is_active();