From 887315d76d0a4f74a9c4c282c79d5f14387d00a8 Mon Sep 17 00:00:00 2001 From: Garux Date: Wed, 15 Jan 2025 23:07:02 +0500 Subject: [PATCH] fix build menu command paste --- radiant/build.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radiant/build.cpp b/radiant/build.cpp index 9555dd03..c670c2fc 100644 --- a/radiant/build.cpp +++ b/radiant/build.cpp @@ -819,7 +819,7 @@ protected: else if ( keyEvent->matches( QKeySequence::StandardKey::Copy ) && x != build.end() ) { g_buildcommand_copied = ( *x ); } - else if ( keyEvent->matches( QKeySequence::StandardKey::Paste ) && !g_buildpair_copied.first.empty() ) { + else if ( keyEvent->matches( QKeySequence::StandardKey::Paste ) && !string_empty( g_buildcommand_copied.c_str() ) ) { g_build_changed = true; build.insert( x, g_buildcommand_copied );