From: Juergen Spitzmueller Date: Fri, 22 Mar 2019 13:18:17 +0000 (+0100) Subject: Cosmetics X-Git-Tag: lyx-2.4.0dev-acb2ca7b~2392 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6efdd1c399334712476608e12a5b1282a9ff5bf3;p=lyx.git Cosmetics --- diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index 44ed76a012..5c9575d699 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -3456,8 +3456,8 @@ GuiPreferences::GuiPreferences(GuiView & lv) bc().setCancel(buttonBox->button(QDialogButtonBox::Cancel)); bc().setRestore(buttonBox->button(QDialogButtonBox::Reset)); - glf = new GuiLyXFiles(lv); - connect(glf, SIGNAL(fileSelected(QString)), + guilyxfiles_ = new GuiLyXFiles(lv); + connect(guilyxfiles_, SIGNAL(fileSelected(QString)), this, SLOT(slotFileSelected(QString))); } @@ -3565,19 +3565,14 @@ void GuiPreferences::slotFileSelected(QString const file) } -/** Wrapper around browseFile which tries to provide a filename -* relative to the user or system directory. The dir, name and ext -* parameters have the same meaning as in the -* support::LibFileSearch function. -*/ QString GuiPreferences::browseLibFile(QString const & dir, QString const & name, QString const & ext) { uifile_.clear(); - glf->passParams(fromqstr(dir)); - glf->selectItem(name); - glf->exec(); + guilyxfiles_->passParams(fromqstr(dir)); + guilyxfiles_->selectItem(name); + guilyxfiles_->exec(); QString const result = uifile_; diff --git a/src/frontends/qt4/GuiPrefs.h b/src/frontends/qt4/GuiPrefs.h index a20f3d028f..df16fde51b 100644 --- a/src/frontends/qt4/GuiPrefs.h +++ b/src/frontends/qt4/GuiPrefs.h @@ -124,7 +124,7 @@ private: /// A list of colors to be dispatched std::vector colors_; /// UI file selector - GuiLyXFiles * glf; + GuiLyXFiles * guilyxfiles_; /// Selected UI file QString uifile_; };