Skip to content

Commit 6ed4bca

Browse files
committed
qt: Wrap tooltips in the intro window
1 parent a63a26f commit 6ed4bca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/qt/bitcoin.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,9 @@ int GuiMain(int argc, char* argv[])
488488
return EXIT_SUCCESS;
489489
}
490490

491+
// Install global event filter that makes sure that long tooltips can be word-wrapped
492+
app.installEventFilter(new GUIUtil::ToolTipToRichTextFilter(TOOLTIP_WRAP_THRESHOLD, &app));
493+
491494
/// 5. Now that settings and translations are available, ask user for data directory
492495
// User language is set up: pick a data directory
493496
bool did_show_intro = false;
@@ -559,8 +562,6 @@ int GuiMain(int argc, char* argv[])
559562
#endif // ENABLE_WALLET
560563

561564
/// 9. Main GUI initialization
562-
// Install global event filter that makes sure that long tooltips can be word-wrapped
563-
app.installEventFilter(new GUIUtil::ToolTipToRichTextFilter(TOOLTIP_WRAP_THRESHOLD, &app));
564565
// Install global event filter that makes sure that out-of-focus labels do not contain text cursor.
565566
app.installEventFilter(new GUIUtil::LabelOutOfFocusEventFilter(&app));
566567
#if defined(Q_OS_WIN)

0 commit comments

Comments
 (0)