|
|
@ -53,6 +53,21 @@ Tab::Tab( |
|
|
|
[this] |
|
|
|
[this] |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Restore session from DB
|
|
|
|
// Restore session from DB
|
|
|
|
|
|
|
|
restore(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
signal_switch_page().connect( |
|
|
|
|
|
|
|
[this](Gtk::Widget*, guint) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// Refresh window elements, e.g. tab label to header bar
|
|
|
|
|
|
|
|
action__refresh->activate(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Tab::restore() |
|
|
|
|
|
|
|
{ |
|
|
|
sqlite3_stmt* statement; |
|
|
|
sqlite3_stmt* statement; |
|
|
|
|
|
|
|
|
|
|
|
const int PREPARE = ::sqlite3_prepare_v3( |
|
|
|
const int PREPARE = ::sqlite3_prepare_v3( |
|
|
@ -95,16 +110,6 @@ Tab::Tab( |
|
|
|
sqlite3_finalize( |
|
|
|
sqlite3_finalize( |
|
|
|
statement |
|
|
|
statement |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
signal_switch_page().connect( |
|
|
|
|
|
|
|
[this](Gtk::Widget*, guint) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// Refresh window elements, e.g. tab label to header bar
|
|
|
|
|
|
|
|
action__refresh->activate(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Tab::save() |
|
|
|
void Tab::save() |
|
|
|