[qt] Open wikibook instead of local manual

... as we don't have local manual

Based on https://build.opensuse.org/package/view_file/home:munix9:unstable/celestia/fix-manual-file-url.patch?expand=1
pull/3/head
Hleb Valoshka 2019-06-04 12:56:11 +03:00
parent d4ac931da9
commit 6ff875dab3
1 changed files with 4 additions and 5 deletions

View File

@ -1052,13 +1052,12 @@ void CelestiaAppWindow::slotBookmarkTriggered(const QString& url)
void CelestiaAppWindow::slotManual()
{
#if 0
QString MANUAL_FILE = "CelestiaGuide.html";
QDesktopServices::openUrl(QUrl(QUrl::fromLocalFile(QDir::toNativeSeparators(QApplication::applicationDirPath()) + QDir::toNativeSeparators(QDir::separator()) + "help" + QDir::toNativeSeparators(QDir::separator()) + MANUAL_FILE)));
// QMessageBox::information(
// QApplication::activeWindow(),
// QApplication::applicationName(),
// QDir::toNativeSeparators(QApplication::applicationDirPath()) + QDir::toNativeSeparators(QDir::separator()) + "help" + QDir::toNativeSeparators(QDir::separator()) + MANUAL_FILE
// );
#else
QDesktopServices::openUrl(QUrl("https://en.wikibooks.org/wiki/Celestia"));
#endif
}