Browse Source

Merge pull request #14647 from Chocobo1/cursor

Move cursor to the next line of end of text
adaptive-webui-19844
Chocobo1 4 years ago committed by GitHub
parent
commit
48d532777a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/gui/downloadfromurldialog.cpp

7
src/gui/downloadfromurldialog.cpp

@ -83,7 +83,12 @@ DownloadFromURLDialog::DownloadFromURLDialog(QWidget *parent) @@ -83,7 +83,12 @@ DownloadFromURLDialog::DownloadFromURLDialog(QWidget *parent)
if (isDownloadable(str))
uniqueURLs << str;
}
m_ui->textUrls->setText(uniqueURLs.values().join('\n'));
const QString text = uniqueURLs.values().join(QLatin1Char('\n'))
+ (!uniqueURLs.isEmpty() ? QLatin1String("\n") : QLatin1String(""));
m_ui->textUrls->setText(text);
m_ui->textUrls->moveCursor(QTextCursor::End);
Utils::Gui::resize(this, m_storeDialogSize);
show();

Loading…
Cancel
Save