# HG changeset patch # User Jacob Dawid # Date 1340310608 -7200 # Node ID e10d7bcfdd9e0237b8d31505f134d12d8df8b17c # Parent e3ae0850b10512893088da512d2cb9e9ebc96d9c Now recognizing more symbol types in workspace view. Fixed bug with file system watcher complaining with new files. * file-editor-tab.cc: Checking for empty file watcher path list when saving. * symbol-information.h: Recognizing more types. diff -r e3ae0850b105 -r e10d7bcfdd9e gui/src/m-editor/file-editor-tab.cc --- a/gui/src/m-editor/file-editor-tab.cc Thu Jun 21 21:29:01 2012 +0200 +++ b/gui/src/m-editor/file-editor-tab.cc Thu Jun 21 22:30:08 2012 +0200 @@ -404,7 +404,8 @@ } QStringList watched_files = _file_system_watcher.files(); - _file_system_watcher.removePaths(watched_files); + if (!watched_files.isEmpty ()) + _file_system_watcher.removePaths(watched_files); // open the file for writing QFile file (saveFileName); @@ -427,7 +428,8 @@ _edit_area->setModified (false); // files is save -> not modified file.close(); - _file_system_watcher.addPaths (watched_files); + if (!watched_files.isEmpty ()) + _file_system_watcher.addPaths (watched_files); return true; } diff -r e3ae0850b105 -r e10d7bcfdd9e gui/src/symbol-information.h --- a/gui/src/symbol-information.h Thu Jun 21 21:29:01 2012 +0200 +++ b/gui/src/symbol-information.h Thu Jun 21 22:30:08 2012 +0200 @@ -132,12 +132,14 @@ _value = QString ("%1 : %2 : %3").arg (ov.range_value ().base ()) .arg (ov.range_value ().inc ()) .arg (ov.range_value ().limit ()); - else if (ov.is_real_matrix ()) + else if (ov.is_matrix_type()) _value = QString ("%1x%2").arg (ov.rows ()) .arg (ov.columns ()); - else if (ov.is_complex_matrix ()) + else if (ov.is_cell()) _value = QString ("%1x%2").arg (ov.rows ()) .arg (ov.columns ()); + else if (ov.is_bool_type () && !ov.is_matrix_type()) + _value = ov.bool_value () ? "true" : "false"; else _value = QString ("");