From: Aiwota Programmer Date: Sat, 4 Jul 2009 20:56:20 +0000 (+0900) Subject: Refresh after loading if contents are empty. X-Git-Url: http://git.osdn.net/view?p=fukui-no-namari%2Fdialektos.git;a=commitdiff_plain;h=216edfb091bdb23ae3d84aa4835fac795554d569 Refresh after loading if contents are empty. --- diff --git a/src/board_window.cxx b/src/board_window.cxx index fe8de9d..b450b2a 100644 --- a/src/board_window.cxx +++ b/src/board_window.cxx @@ -231,7 +231,8 @@ void BoardWindow::load() { boost::filesystem::path(bbs_->get_board_subject_idx_path())); merge_subject_txt(subjects, buffer); - } + } else + on_action_view_refresh(); tree_model_->set_buffer(buffer); } diff --git a/src/thread_window.cxx b/src/thread_window.cxx index 18c624e..13e6660 100644 --- a/src/thread_window.cxx +++ b/src/thread_window.cxx @@ -115,6 +115,8 @@ bool ThreadWindow::load() { idx_ = ThreadIdx::from_xml(bbs_->get_thread_idx_path()); set_title(idx_.title_); histories.push(bbs_->get_thread_uri(), idx_.title_); + + if (text_view_->get_res_num() == 0) on_action_view_refresh(); } return false;