Permalink
Browse files

changed behaviour of O shortcut

  • Loading branch information...
benapetr committed Sep 8, 2014
1 parent 4906080 commit e47bb5665d245d15bcaef290d5447c1c3428da55
Showing with 6 additions and 1 deletion.
  1. +6 −1 huggle/mainwindow.cpp
@@ -2101,7 +2101,12 @@ void MainWindow::on_actionOpen_in_a_browser_triggered()
{
if (this->CurrentEdit != nullptr)
{
QDesktopServices::openUrl(QUrl::fromEncoded(QString(this->ProjectURL() + this->CurrentEdit->Page->EncodedName()).toUtf8()));
if (this->CurrentEdit->NewPage)
QDesktopServices::openUrl(QUrl::fromEncoded(QString(this->ProjectURL() + this->CurrentEdit->Page->EncodedName()).toUtf8()));
else
QDesktopServices::openUrl(QUrl::fromEncoded(QString(Configuration::GetProjectScriptURL(this->GetCurrentWikiSite()) +
"index.php?diff=" +
QString::number(this->CurrentEdit->Diff)).toUtf8()));
}
}

0 comments on commit e47bb56

Please sign in to comment.