dialektos
Revision | 216edfb091bdb23ae3d84aa4835fac795554d569 (tree) |
---|---|
Time | 2009-07-05 05:56:20 |
Author | Aiwota Programmer <aiwotaprog@tett...> |
Commiter | Aiwota Programmer |
Refresh after loading if contents are empty.
@@ -231,7 +231,8 @@ void BoardWindow::load() { | ||
231 | 231 | boost::filesystem::path(bbs_->get_board_subject_idx_path())); |
232 | 232 | |
233 | 233 | merge_subject_txt(subjects, buffer); |
234 | - } | |
234 | + } else | |
235 | + on_action_view_refresh(); | |
235 | 236 | |
236 | 237 | tree_model_->set_buffer(buffer); |
237 | 238 | } |
@@ -115,6 +115,8 @@ bool ThreadWindow::load() { | ||
115 | 115 | idx_ = ThreadIdx::from_xml(bbs_->get_thread_idx_path()); |
116 | 116 | set_title(idx_.title_); |
117 | 117 | histories.push(bbs_->get_thread_uri(), idx_.title_); |
118 | + | |
119 | + if (text_view_->get_res_num() == 0) on_action_view_refresh(); | |
118 | 120 | } |
119 | 121 | |
120 | 122 | return false; |