From b4f5c17898317720662fc15a7828b68b2e81d950 Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Mon, 7 Oct 2019 07:41:13 -0400 Subject: disallow empty titles --- src/editexecutablesdialog.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/editexecutablesdialog.h') diff --git a/src/editexecutablesdialog.h b/src/editexecutablesdialog.h index 494f0651..9e39b115 100644 --- a/src/editexecutablesdialog.h +++ b/src/editexecutablesdialog.h @@ -169,6 +169,7 @@ private slots: void on_down_clicked(); void on_title_textChanged(const QString& s); + void on_title_editingFinished(); void on_overwriteSteamAppID_toggled(bool checked); void on_createFilesInMod_toggled(bool checked); void on_forceLoadLibraries_toggled(bool checked); @@ -196,6 +197,10 @@ private: // forced libraries set in the dialog ForcedLibraries m_forcedLibraries; + // remembers the last executable title that made sense, reverts to this when + // the widget loses focus if it's empty + QString m_lastGoodTitle; + // true when the change events being triggered are in response to loading // the executable's data into the UI, not from a user change bool m_settingUI; -- cgit v1.3.1