mirror of
https://github.com/tnodir/fort
synced 2024-11-15 09:17:28 +00:00
UI: Options: AppGroup: Fix "Select File" insertion to current field
This commit is contained in:
parent
ab7ef64bba
commit
b8e6585e27
@ -564,11 +564,12 @@ void ApplicationsPage::setupSplitter()
|
||||
void ApplicationsPage::setupSplitterButtons()
|
||||
{
|
||||
m_btSelectFile = ControlUtil::createSplitterButton(":/icons/folder.png", [&] {
|
||||
auto area = m_allowSplitter->handle()->currentTextArea();
|
||||
|
||||
const auto filePaths = DialogUtil::getOpenFileNames(
|
||||
m_btSelectFile->text(), tr("Programs (*.exe);;All files (*.*)"));
|
||||
|
||||
if (!filePaths.isEmpty()) {
|
||||
auto area = m_allowSplitter->handle()->currentTextArea();
|
||||
TextAreaUtil::appendText(area, filePaths.join('\n'));
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user