diff options
| author | Andrea Diamantini <adjam7@gmail.com> | 2011-07-17 16:46:24 +0200 | 
|---|---|---|
| committer | Andrea Diamantini <adjam7@gmail.com> | 2011-07-17 16:46:24 +0200 | 
| commit | 82167d2422a4b6e3071dca68cf65a66e1da41ab4 (patch) | |
| tree | 03c1f95a2aa60c48822a463cc3812b5c3415991e /src/history/historypanel.cpp | |
| parent | Improving tab previews (diff) | |
| download | rekonq-82167d2422a4b6e3071dca68cf65a66e1da41ab4.tar.xz | |
A round of the "new" astyle 2.01...
Diffstat (limited to 'src/history/historypanel.cpp')
| -rw-r--r-- | src/history/historypanel.cpp | 22 | 
1 files changed, 11 insertions, 11 deletions
| diff --git a/src/history/historypanel.cpp b/src/history/historypanel.cpp index 44cd9f96..d9a1afa9 100644 --- a/src/history/historypanel.cpp +++ b/src/history/historypanel.cpp @@ -49,7 +49,7 @@  HistoryPanel::HistoryPanel(const QString &title, QWidget *parent, Qt::WindowFlags flags) -        : UrlPanel(title, parent, flags) +    : UrlPanel(title, parent, flags)  {      setObjectName("historyPanel");      setVisible(ReKonfig::showHistoryPanel()); @@ -108,26 +108,26 @@ void HistoryPanel::contextMenuEmpty(const QPoint& /*pos*/)  void HistoryPanel::openAll()  {      QModelIndex index = panelTreeView()->currentIndex(); -    if (!index.isValid()) +    if(!index.isValid())          return;      QList<KUrl> allChild; -    for (int i = 0; i < index.model()->rowCount(index); i++) +    for(int i = 0; i < index.model()->rowCount(index); i++)          allChild << qVariantValue<KUrl>(index.child(i, 0).data(Qt::UserRole)); -    if (allChild.length() > 8) +    if(allChild.length() > 8)      { -        if (!(KMessageBox::warningContinueCancel(this, -                i18ncp("%1=Number of tabs. Value is always >=8", -                       "You are about to open %1 tabs.\nAre you sure?", -                       "You are about to open %1 tabs.\nAre you sure?", -                       allChild.length())) == KMessageBox::Continue) -           ) +        if(!(KMessageBox::warningContinueCancel(this, +                                                i18ncp("%1=Number of tabs. Value is always >=8", +                                                        "You are about to open %1 tabs.\nAre you sure?", +                                                        "You are about to open %1 tabs.\nAre you sure?", +                                                        allChild.length())) == KMessageBox::Continue) +          )              return;      } -    for (int i = 0; i < allChild.length(); i++) +    for(int i = 0; i < allChild.length(); i++)          emit openUrl(allChild.at(i).url(), Rekonq::NewTab);  } | 
