Skip to content

Commit 19e8803

Browse files
committed
Better editor reload
#1048
1 parent 229a9b7 commit 19e8803

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

edit/index.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ std::string edit_index (Webserver_Request& webserver_request)
8989
constexpr const char* identification {"bibleselect"};
9090
if (webserver_request.post_count(identification)) {
9191
bible = webserver_request.post_get(identification);
92-
webserver_request.database_config_user ()->set_bible (bible);
92+
webserver_request.database_config_user()->set_bible (bible);
9393
// Going to another Bible, ensure that the focused book exists there.
9494
int book = Ipc_Focus::getBook (webserver_request);
9595
const std::vector <int> books = database::bibles::get_books (bible);
@@ -98,6 +98,8 @@ std::string edit_index (Webserver_Request& webserver_request)
9898
else book = 0;
9999
Ipc_Focus::set (webserver_request, book, 1, 1);
100100
}
101+
// Ensure it gets loaded.
102+
redirect_browser (webserver_request, edit_index_url());
101103
return std::string();
102104
}
103105
dialog::select::Settings settings {

0 commit comments

Comments
 (0)