[glom/glom-1-20] Dialog_Import_CSV_Progress: Fix a typo.



commit d2d1d3b9865dc07152f270605a1218f4e9f645c4
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Mar 26 21:52:25 2012 +0200

    Dialog_Import_CSV_Progress: Fix a typo.
    
    	* glom/import_csv/dialog_import_csv_progress.cc: Call get_parser_state()
    	instead of get_state(). It was calling Widget::get_state() and the
    	compiler did not complain that we did not get the enum type that we
    	expected.

 ChangeLog                                     |    9 +++++++++
 glom/import_csv/dialog_import_csv_progress.cc |    2 +-
 2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1b58b00..2a98e21 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-03-26  Murray Cumming  <murrayc murrayc com>
+
+	Dialog_Import_CSV_Progress: Fix a typo.
+
+	* glom/import_csv/dialog_import_csv_progress.cc: Call get_parser_state()
+	instead of get_state(). It was calling Widget::get_state() and the 
+	compiler did not complain that we did not get the enum type that we
+	expected.
+
 2012-03-22  Murray Cumming  <murrayc murrayc com>
 
 	Tests: Set LC_TIME too.
diff --git a/glom/import_csv/dialog_import_csv_progress.cc b/glom/import_csv/dialog_import_csv_progress.cc
index 4529cfa..27f8757 100644
--- a/glom/import_csv/dialog_import_csv_progress.cc
+++ b/glom/import_csv/dialog_import_csv_progress.cc
@@ -125,7 +125,7 @@ void Dialog_Import_CSV_Progress::begin_import()
 
 void Dialog_Import_CSV_Progress::on_state_changed()
 {
-  switch(m_data_source->get_state())
+  switch(m_data_source->get_parser_state())
   {
   case CsvParser::STATE_ENCODING_ERROR:
     // Cancel on error



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]