Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLMC
Commits
46c8161b
Commit
46c8161b
authored
Dec 22, 2009
by
Hugo Beauzee-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Autosave is now functionnal.
It has been deactivated by default.
parent
ef64c99e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
src/Configuration/VLMCSettingsDefault.cpp
src/Configuration/VLMCSettingsDefault.cpp
+1
-1
src/GUI/settings/ui/VLMCPreferences.ui
src/GUI/settings/ui/VLMCPreferences.ui
+1
-1
src/Project/ProjectManager.cpp
src/Project/ProjectManager.cpp
+5
-3
No files found.
src/Configuration/VLMCSettingsDefault.cpp
View file @
46c8161b
...
...
@@ -48,7 +48,7 @@ void VLMCSettingsDefault::loadVLMCDefaults( const QString& part )
settingsMan
->
setValue
(
part
,
"VLMCWorkspace"
,
QDir
::
homePath
()
);
settingsMan
->
setValue
(
part
,
"AutomaticBackup"
,
tru
e
);
settingsMan
->
setValue
(
part
,
"AutomaticBackup"
,
fals
e
);
settingsMan
->
setValue
(
part
,
"AutomaticBackupInterval"
,
5
);
return
;
...
...
src/GUI/settings/ui/VLMCPreferences.ui
View file @
46c8161b
...
...
@@ -74,7 +74,7 @@
<string/>
</property>
<property
name=
"checked"
>
<bool>
tru
e
</bool>
<bool>
fals
e
</bool>
</property>
</widget>
</item>
...
...
src/Project/ProjectManager.cpp
View file @
46c8161b
...
...
@@ -329,7 +329,7 @@ void ProjectManager::automaticSaveEnabledChanged( const QVariant& val )
if
(
enabled
==
true
)
{
const
SettingValue
*
interval
=
SettingsManager
::
getInstance
()
->
getValue
(
"VLMC"
,
"AutomaticBackupInterval"
);
m_timer
->
start
(
interval
->
get
().
toInt
()
*
1000
/*
* 60
*/
);
m_timer
->
start
(
interval
->
get
().
toInt
()
*
1000
*
60
);
}
else
m_timer
->
stop
();
...
...
@@ -341,10 +341,12 @@ void ProjectManager::automaticSaveIntervalChanged( const QVariant& val )
if
(
enabled
->
get
().
toBool
()
==
false
)
return
;
m_timer
->
start
(
val
.
toInt
()
*
1000
/*
* 60
*/
);
m_timer
->
start
(
val
.
toInt
()
*
1000
*
60
);
}
void
ProjectManager
::
autoSaveRequired
()
{
qWarning
()
<<
"Autosave required"
;
if
(
m_projectFile
==
NULL
)
return
;
saveProject
(
false
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment