Skip to content

Commit

Permalink
Remove extra spaces from repository URL candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
soramimi committed Jun 15, 2024
1 parent fca7958 commit 3fe2293
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/AddRepositoryDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<item>
<widget class="QStackedWidget" name="stackedWidget">
<property name="currentIndex">
<number>2</number>
<number>1</number>
</property>
<widget class="QWidget" name="page_first">
<layout class="QVBoxLayout" name="verticalLayout_4">
Expand Down
1 change: 1 addition & 0 deletions src/RepositoryUrlLineEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ void RepositoryUrlLineEdit::setNextRepositoryUrlCandidate(bool forward)
{
updateRepositoryUrlCandidates();
QString url = text();
url = misc::splitWords(url).join(' '); // remove extra spaces
for (int i = 0; i < m->url_candidates.size(); i++) {
if (m->url_candidates[i] == url) {
if (forward) {
Expand Down

0 comments on commit 3fe2293

Please sign in to comment.