Minor correction to Lua script path line edit box. Added clear buttons for line edit boxes on Lua console window.

This commit is contained in:
mjbudd77 2021-03-21 15:00:39 -04:00
parent 26ee4ea14a
commit b942f07e9f
1 changed files with 4 additions and 2 deletions

View File

@ -128,7 +128,9 @@ LuaControlDialog_t::LuaControlDialog_t(QWidget *parent)
g_config->getOption("SDL.LastLoadLua", &filename);
scriptPath->setText(filename.c_str());
scriptPath->setText( tr(filename.c_str()) );
scriptPath->setClearButtonEnabled(true);
scriptArgs->setClearButtonEnabled(true);
luaOutput = new QTextEdit();
luaOutput->setReadOnly(true);
@ -401,7 +403,7 @@ void LuaControlDialog_t::openLuaScriptFile(void)
g_config->setOption("SDL.LastLoadLua", filename.toStdString().c_str());
scriptPath->setText(filename.toStdString().c_str());
scriptPath->setText(filename);
#endif
}