Make the URL dialog contain QLineEdit

as otherwise pressing RETURN does unexpected things.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
Robert C. Helling 2017-01-11 10:25:07 +01:00 committed by Subsurface
parent 0f58510ce0
commit db17adfb28
3 changed files with 3 additions and 2 deletions

View file

@ -412,7 +412,7 @@ URLDialog::URLDialog(QWidget *parent) : QDialog(parent)
QString URLDialog::url() const
{
return ui.urlField->toPlainText();
return ui.urlField->text();
}
bool isGnome3Session()

View file

@ -8,6 +8,7 @@ class QNetworkReply;
#include <QWidget>
#include <QGroupBox>
#include <QDialog>
#include <QTextEdit>
#include <stdint.h>
#include "ui_renumber.h"

View file

@ -29,7 +29,7 @@
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
<widget class="QPlainTextEdit" name="urlField">
<widget class="QLineEdit" name="urlField">
<property name="geometry">
<rect>
<x>10</x>