From 5569cec48b1a4fb64f357c6b69aca27f8d1554bd Mon Sep 17 00:00:00 2001 From: nowrep Date: Tue, 29 Jan 2013 20:58:08 +0100 Subject: [PATCH] [win] Fixed building after last commit. --- src/lib/app/mainapplication.cpp | 2 +- src/lib/navigation/completer/locationcompleterdelegate.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/app/mainapplication.cpp b/src/lib/app/mainapplication.cpp index cc01afb83..4ac2cd55f 100644 --- a/src/lib/app/mainapplication.cpp +++ b/src/lib/app/mainapplication.cpp @@ -842,7 +842,7 @@ bool MainApplication::checkDefaultWebBrowser() #ifdef Q_OS_WIN bool showAgain = true; if (!associationManager()->isDefaultForAllCapabilities()) { - CheckBoxDialog dialog(QDialogButtonBox::Yes | QDialogButtonBox::No, this); + CheckBoxDialog dialog(QDialogButtonBox::Yes | QDialogButtonBox::No); dialog.setText(tr("QupZilla is not currently your default browser. Would you like to make it your default browser?")); dialog.setCheckBoxText(tr("Always perform this check when starting QupZilla.")); dialog.setWindowTitle(tr("Default Browser")); diff --git a/src/lib/navigation/completer/locationcompleterdelegate.cpp b/src/lib/navigation/completer/locationcompleterdelegate.cpp index 2730b4022..db5c42ed9 100644 --- a/src/lib/navigation/completer/locationcompleterdelegate.cpp +++ b/src/lib/navigation/completer/locationcompleterdelegate.cpp @@ -119,7 +119,7 @@ void LocationCompleterDelegate::paint(QPainter* painter, const QStyleOptionViewI QRect textRect(linkRect); textRect.setX(textRect.x() + m_padding + 16 + m_padding); - drawTextLine(textRect, m_view->tr("Switch to tab"), painter, style, opt, colorLinkRole); + drawTextLine(textRect, LocationCompleterView::tr("Switch to tab"), painter, style, opt, colorLinkRole); } else { drawHighlightedTextLine(linkRect, link, searchText, painter, style, opt, colorLinkRole);