|
|
|
@ -53,6 +53,21 @@ Tab::Tab(
@@ -53,6 +53,21 @@ Tab::Tab(
|
|
|
|
|
[this] |
|
|
|
|
{ |
|
|
|
|
// 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; |
|
|
|
|
|
|
|
|
|
const int PREPARE = ::sqlite3_prepare_v3( |
|
|
|
@ -96,16 +111,6 @@ Tab::Tab(
@@ -96,16 +111,6 @@ Tab::Tab(
|
|
|
|
|
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() |
|
|
|
|
{ |
|
|
|
|