aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ephy-dialog.c')
-rw-r--r--lib/ephy-dialog.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/ephy-dialog.c b/lib/ephy-dialog.c
index 4d1fd9e17..0ed3df6fd 100644
--- a/lib/ephy-dialog.c
+++ b/lib/ephy-dialog.c
@@ -968,11 +968,18 @@ setup_default_size (EphyDialog *dialog)
{
if (dialog->priv->has_default_size == FALSE)
{
+ EphyStateWindowFlags flags;
+
+ flags = EPHY_STATE_WINDOW_SAVE_SIZE;
+
+ if (dialog->priv->persist_position)
+ {
+ flags |= EPHY_STATE_WINDOW_SAVE_POSITION;
+ }
+
ephy_state_add_window (dialog->priv->dialog,
dialog->priv->name, -1, -1,
- dialog->priv->persist_position ?
- EPHY_STATE_WINDOW_SAVE_POSITION :
- EPHY_STATE_WINDOW_SAVE_SIZE);
+ flags);
dialog->priv->has_default_size = TRUE;
}