Make Quassel compile on MSVC.
authorAlexander von Renteln <phon@quassel-irc.org>
Mon, 21 Jan 2008 17:27:04 +0000 (17:27 +0000)
committerAlexander von Renteln <phon@quassel-irc.org>
Mon, 21 Jan 2008 17:27:04 +0000 (17:27 +0000)
src/client/treemodel.cpp
src/uisupport/bufferview.cpp

index 929622d..ffcec13 100644 (file)
@@ -429,7 +429,7 @@ void TreeModel::itemDataChanged(int column) {
 }
 
 void TreeModel::appendChild(AbstractTreeItem *parent, AbstractTreeItem *child) {
-  if(parent == 0 or child == 0) {
+  if(parent == 0 || child == 0) {
     qWarning() << "TreeModel::appendChild(parent, child) parent and child have to be valid pointers!" << parent << child;
     return;
   }
index a0d5b28..fd4c245 100644 (file)
@@ -113,5 +113,5 @@ void BufferView::rowsInserted(const QModelIndex & parent, int start, int end) {
 
 void BufferView::toggleHeader(bool checked) {
   QAction *action = qobject_cast<QAction *>(sender());
-  header()->setSectionHidden((action->property("column")).toInt(), not checked);
+  header()->setSectionHidden((action->property("column")).toInt(), !checked);
 }