Skip to content

Commit c32b53f

Browse files
committed
qt: Wrap tooltips in the intro window
1 parent d6fe5b2 commit c32b53f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/qt/bitcoin.cpp

Lines changed: 3 additions & 2 deletions
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;
@@ -554,8 +557,6 @@ int GuiMain(int argc, char* argv[])
554557
#endif // ENABLE_WALLET
555558

556559
/// 9. Main GUI initialization
557-
// Install global event filter that makes sure that long tooltips can be word-wrapped
558-
app.installEventFilter(new GUIUtil::ToolTipToRichTextFilter(TOOLTIP_WRAP_THRESHOLD, &app));
559560
#if defined(Q_OS_WIN)
560561
// Install global event filter for processing Windows session related Windows messages (WM_QUERYENDSESSION and WM_ENDSESSION)
561562
qApp->installNativeEventFilter(new WinShutdownMonitor());

0 commit comments

Comments
 (0)