]> Git trees. - libqmvoc.git/commitdiff
improve a check and put my name into the copyrights, as it's my code too ;)
authorPino Toscano <pino@kde.org>
Tue, 13 Feb 2007 15:33:28 +0000 (15:33 +0000)
committerPino Toscano <pino@kde.org>
Tue, 13 Feb 2007 15:33:28 +0000 (15:33 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=633233

kdeeduui/kdeeduglossary.cpp
kdeeduui/kdeeduglossary.h

index 12679a375082b0561ab2417f79868e9251fd106a..8c455e5cc7443242b4e3a329c664e0e169a68624 100644 (file)
@@ -1,5 +1,6 @@
 /***************************************************************************
  *   Copyright (C) 2005, 2006 by Carsten Niehaus <cniehaus@kde.org>        *
+ *   Copyright (C) 2005 - 2007 by Pino Toscano <pino@kde.org>              *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
@@ -390,9 +391,10 @@ QTreeWidgetItem* GlossaryDialog::Private::createItem( Glossary* glossary ) const
 
 void GlossaryDialog::addGlossary( Glossary* newgloss )
 {
-       if ( !newgloss ) return;
-       if ( newgloss->isEmpty() ) return;
-       d->m_glossaries.append( newgloss );
+    if ( !newgloss || newgloss->isEmpty() )
+        return;
+
+    d->m_glossaries.append( newgloss );
 
     d->m_glosstree->addTopLevelItem( d->createItem( newgloss ) );
 }
index afa159b9f64bc34e2ee0e550c7ce1ade5bc1ea3e..31f4ad4bb3bf16b2140ba57c0ca769ba1a79e6b9 100644 (file)
@@ -1,18 +1,13 @@
 #ifndef KDEEDUGLOSSARY_H
 #define KDEEDUGLOSSARY_H
 /***************************************************************************
-
-    copyright            : (C) 2005 by Carsten Niehaus
-    email                : cniehaus@kde.org
- ***************************************************************************/
-
-/***************************************************************************
+ *   Copyright (C) 2005, 2006 by Carsten Niehaus <cniehaus@kde.org>        *
+ *   Copyright (C) 2005 - 2007 by Pino Toscano <pino@kde.org>              *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
  *   the Free Software Foundation; either version 2 of the License, or     *
  *   (at your option) any later version.                                   *
- *                                                                         *
  ***************************************************************************/
 
 #include <libkdeedu_ui_export.h>