OSDN Git Service

can't delete subject column
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Wed, 24 Nov 2004 16:09:52 +0000 (16:09 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Wed, 24 Nov 2004 16:09:52 +0000 (16:09 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1558 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/kitasubjectview.cpp

index 65ca9f6..63c3bf5 100644 (file)
@@ -474,8 +474,10 @@ bool KitaSubjectView::eventFilter( QObject* watched, QEvent* e )
             popup.setCheckable( true );
 
             for( int i = Col_Begin; i <= Col_End; i++ ) {
-                popup.insertItem( s_colAttr[ i ].itemName, i );
-                popup.setItemChecked( i, subjectList->columnWidth( i ) != 0 );
+                if ( i != Col_Subject ) {
+                    popup.insertItem( s_colAttr[ i ].itemName, i );
+                    popup.setItemChecked( i, subjectList->columnWidth( i ) != 0 );
+                }
             }
 
             int id = popup.exec( mouseEvent->globalPos() );