diff options
| author | Andrea Diamantini <adjam7@gmail.com> | 2011-11-03 16:25:34 +0100 | 
|---|---|---|
| committer | Andrea Diamantini <adjam7@gmail.com> | 2011-11-03 16:25:34 +0100 | 
| commit | bec0deb0925091d2b26038deed730c72af9c0a37 (patch) | |
| tree | 0db8d5ced1763084ff645e88f3bb22bea8e1c44c /src/urlbar | |
| parent | also take 'application/futuresplash' mimetype in account for clickToFlash (diff) | |
| download | rekonq-bec0deb0925091d2b26038deed730c72af9c0a37.tar.xz | |
Let rekonq save file remotely
Andreas's comment was helpful: rekonq COULD save file remotely, but
for same strange reason, KFileDialog::getSaveFileName() could not
select remote files. Switching to getSaveUrl seems fixing the problem
Ah... also a style clean up here. Sorry for the merged commit...
BUG: 242675
Diffstat (limited to 'src/urlbar')
| -rw-r--r-- | src/urlbar/urlbar.cpp | 12 | ||||
| -rw-r--r-- | src/urlbar/urlresolver.cpp | 2 | 
2 files changed, 7 insertions, 7 deletions
| diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp index 54045bf4..9460cf8a 100644 --- a/src/urlbar/urlbar.cpp +++ b/src/urlbar/urlbar.cpp @@ -261,28 +261,28 @@ void UrlBar::keyPressEvent(QKeyEvent *event)      if (currentText.isEmpty())          return KLineEdit::keyPressEvent(event); -     +      // this handles the Modifiers + Return key combinations      if (event->key() == Qt::Key_Return || event->key() == Qt::Key_Enter)      { -        switch(event->modifiers()) +        switch (event->modifiers())          {          case Qt::AltModifier:              loadRequestedUrl(currentText, Rekonq::NewFocusedTab);              break; -             +          case Qt::ControlModifier:              loadRequestedUrl(guessUrlWithCustomFirstLevel(currentText, QL1S(".com")));              break; -             +          case 0x06000000: // Qt::ControlModifier | Qt::ShiftModifier:              loadRequestedUrl(guessUrlWithCustomFirstLevel(currentText, QL1S(".org")));              break; -             +          case Qt::ShiftModifier:              loadRequestedUrl(guessUrlWithCustomFirstLevel(currentText, QL1S(".net")));              break; -             +          default:              loadRequestedUrl(currentText);              break; diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp index a1459399..e7f41c7b 100644 --- a/src/urlbar/urlresolver.cpp +++ b/src/urlbar/urlresolver.cpp @@ -402,7 +402,7 @@ void UrlResolver::suggestionsReceived(const QString &text, const ResponseList &s      {          if (text == i.title)              continue; -         +          urlString = i.url;          if (urlString.isEmpty())          { | 
