From 216edfb091bdb23ae3d84aa4835fac795554d569 Mon Sep 17 00:00:00 2001 From: Aiwota Programmer Date: Sun, 5 Jul 2009 05:56:20 +0900 Subject: [PATCH] Refresh after loading if contents are empty. --- src/board_window.cxx | 3 ++- src/thread_window.cxx | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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; -- 2.11.0