Skip to content

Commit 0a2470d

Browse files
committed
Plugins::WebBrowser: fix bookmark no refresh bug
1 parent 9c1c7db commit 0a2470d

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Plugins/WebBrowser/Bookmark/FrmBookmark.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ CFrmBookmark::CFrmBookmark(CParameterWebBrowser *pPara, QWidget *parent)
3131
setAcceptDrops(true);
3232

3333
setupUI();
34-
loadBookmarks();
3534

3635
if(m_pPara) {
3736
m_pDatabase = &pPara->m_BookmarkDatabase;
3837
resize(m_pPara->GetWindowSize());
3938
}
39+
40+
loadBookmarks();
4041
}
4142

4243
CFrmBookmark::~CFrmBookmark()

Plugins/WebBrowser/History/HistoryModel.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ CHistoryModel::CHistoryModel(CParameterWebBrowser *pPara, QObject *parent)
1010
, m_pPara(pPara)
1111
{
1212
qDebug(log) << Q_FUNC_INFO;
13+
14+
if(pPara)
15+
m_pDatabase = &pPara->m_HistoryDatabase;
16+
1317
// Call refresh() by user
1418
// if (m_pDatabase && m_pDatabase->isOpen()) {
1519
// refresh();
1620
// }
17-
if(pPara)
18-
m_pDatabase = &pPara->m_HistoryDatabase;
1921
}
2022

2123
CHistoryModel::~CHistoryModel()

0 commit comments

Comments
 (0)