From 013a2264c0d25a7ca671c82b86201a07d36407f0 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Sat, 4 May 2019 02:43:33 +0300 Subject: [PATCH] Show tooltip only if there's something to show --- gui/copySelectDialog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/copySelectDialog.py b/gui/copySelectDialog.py index cf70adae5..82b57059b 100644 --- a/gui/copySelectDialog.py +++ b/gui/copySelectDialog.py @@ -100,7 +100,8 @@ class CopySelectDialog(wx.Dialog): for optId, optName, optDesc, _ in formatOptions: checkbox = wx.CheckBox(self, -1, optName) - checkbox.SetToolTip(wx.ToolTip(optDesc)) + if optDesc: + checkbox.SetToolTip(wx.ToolTip(optDesc)) self.options[formatId][optId] = checkbox if self.settings['options'].get(formatId, {}).get(optId, defaultFormatOptions.get(formatId, {}).get(optId)): checkbox.SetValue(True)