[glom] Dialog_Import_CSV_Progress: Fix a typo.



commit c6b973a382eee339f02f3ae6444af670a95e3acf
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 9c961b4..a88e5e9 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 896b836..dfebc04 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_data_source_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]