From 4d813498255cf18b8117d41bdf52a0db2f2f50db Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 25 Jan 2019 08:02:47 +0100 Subject: [PATCH] Debugger: Don't let overlong filename stretch Creator window Change-Id: I79cd3c471e09d04019833d09eea81d462ce477c9 Task-number: QTCREATORBUG-21885 Reviewed-by: Christian Stenger --- src/plugins/debugger/debuggerplugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index e52cb723141..cdb1e87ad24 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1452,8 +1452,9 @@ void DebuggerPluginPrivate::updatePresetState() if (startupRunConfigName.isEmpty() && startupProject) startupRunConfigName = startupProject->displayName(); + // Restrict width, otherwise Creator gets too wide, see QTCREATORBUG-21885 const QString startToolTip = - canRun ? tr("Start debugging of \"%1\"").arg(startupRunConfigName) : whyNot; + canRun ? tr("Start debugging of startup project") : whyNot; m_startAction.setToolTip(startToolTip); m_startAction.setText(canRun ? startToolTip : tr("Start Debugging"));