Index: head/devel/alabastra/files/patch-src_AlWinMain.cpp =================================================================== --- head/devel/alabastra/files/patch-src_AlWinMain.cpp (nonexistent) +++ head/devel/alabastra/files/patch-src_AlWinMain.cpp (revision 432988) @@ -0,0 +1,29 @@ +--- src/AlWinMain.cpp.orig 2007-10-13 11:06:35 UTC ++++ src/AlWinMain.cpp +@@ -161,7 +161,7 @@ void AlWinMain::connectEditor( AlTextEdi + */ + void AlWinMain::insertDateTime(){ + QDateTime dt=QDateTime::currentDateTime(); +- if (ui.list_files->currentItem() > 0) ++ if (ui.list_files->currentItem() != NULL) + actualTxt->textCursor().insertText(dt.toString(Qt::LocalDate)); + }; + +@@ -719,7 +719,7 @@ void AlWinMain::refresh() + */ + void AlWinMain::cancella() + { +- if (actualTxt > 0 && ui.list_files->currentItem() > 0) ++ if (actualTxt != NULL && ui.list_files->currentItem() != NULL) + actualTxt->clear(); + + }; +@@ -728,7 +728,7 @@ void AlWinMain::cancella() + */ + void AlWinMain::insertComment() + { +- if (actualTxt > 0 && ui.list_files->currentItem() > 0) ++ if (actualTxt != NULL && ui.list_files->currentItem() != NULL) + actualTxt->textCursor().insertText(" /*********/ " + " /* */ " + " /*********/ " ); Property changes on: head/devel/alabastra/files/patch-src_AlWinMain.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property