fixed url updates in gui
This commit is contained in:
@@ -467,7 +467,7 @@ class TestGUI: public QMainWindow, protected Ui::TestGUI {
|
||||
case QEvent::UpdateLater:
|
||||
case QEvent::Paint: break;
|
||||
default:;
|
||||
/* _log->appendPlainText(QString("Event: %1")
|
||||
/* logging(QString("Event: %1")
|
||||
.arg(eventName(event->type()))); */
|
||||
}
|
||||
_inEventFilter = false;
|
||||
@@ -475,9 +475,11 @@ class TestGUI: public QMainWindow, protected Ui::TestGUI {
|
||||
}
|
||||
private:
|
||||
void storeUrl(QUrl u) {
|
||||
if (!_url->findText(u.url())) {
|
||||
if (_url->findText(u.url())==-1) {
|
||||
_url->addItem(u.url());
|
||||
_url->setCurrentText(u.url());
|
||||
} else {
|
||||
_url->setCurrentText(u.url());
|
||||
}
|
||||
}
|
||||
void loadFile(QString name) {
|
||||
|
||||
Reference in New Issue
Block a user