[LyX/master] Give the user visible feedback when reconfiguring.

Pavel Sanda sanda at lyx.org
Thu Jul 22 12:20:54 UTC 2021


commit 20cee1593752df09b6c1d47794eb9971404fa448
Author: Pavel Sanda <sanda at lyx.org>
Date:   Thu Jul 22 14:30:08 2021 +0200

    Give the user visible feedback when reconfiguring.
---
 src/frontends/qt/GuiApplication.cpp |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/frontends/qt/GuiApplication.cpp b/src/frontends/qt/GuiApplication.cpp
index 1f03997..01a646d 100644
--- a/src/frontends/qt/GuiApplication.cpp
+++ b/src/frontends/qt/GuiApplication.cpp
@@ -1652,8 +1652,10 @@ void GuiApplication::gotoBookmark(unsigned int idx, bool openFile,
 void GuiApplication::reconfigure(string const & option)
 {
 	// emit message signal.
-	if (current_view_)
+	if (current_view_) {
 		current_view_->message(_("Running configure..."));
+		current_view_->setCursor(Qt::WaitCursor);
+	}
 
 	// Run configure in user lyx directory
 	string const lock_file = package().getConfigureLockName();
@@ -1667,6 +1669,9 @@ void GuiApplication::reconfigure(string const & option)
 	LaTeXPackages::getAvailable();
 	fileUnlock(fd, lock_file.c_str());
 
+	if (current_view_)
+		current_view_->unsetCursor();
+
 	if (ret)
 		Alert::information(_("System reconfiguration failed"),
 			   _("The system reconfiguration has failed.\n"


More information about the lyx-cvs mailing list