Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
a4fb459d
Commit
a4fb459d
authored
Aug 24, 2007
by
Pierre-Luc Beaudoin
Browse files
Fix for bug 0000001, when there is no skin at startup.
parent
041947ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gui/qt/SkinManagerImpl.cpp
View file @
a4fb459d
...
...
@@ -18,6 +18,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include
"src/user_cfg.h"
#include
"globals.h"
#include
"DebugOutput.hpp"
#include
"SkinManagerImpl.hpp"
...
...
@@ -41,9 +42,9 @@ void
SkinManagerImpl
::
load
()
{
bool
ok
;
load
(
mSettings
.
readEntry
(
"Skin"
,
"metal"
,
&
ok
));
load
(
mSettings
.
readEntry
(
"Skin"
,
DFT_SKIN
,
&
ok
));
if
(
!
ok
)
{
mSettings
.
writeEntry
(
"Skin"
,
"metal"
);
mSettings
.
writeEntry
(
"Skin"
,
DFT_SKIN
);
}
}
...
...
@@ -57,7 +58,14 @@ SkinManagerImpl::save()
void
SkinManagerImpl
::
load
(
const
QString
&
skin
)
{
mSkin
=
skin
;
if
(
skin
.
isNull
())
{
mSkin
=
QString
(
DFT_SKIN
);
}
else
{
mSkin
=
skin
;
}
if
(
mApp
)
{
taxidermy
::
Taxidermist
taxidermist
=
mHunter
.
getTaxidermist
(
skin
);
taxidermist
.
update
(
mApp
);
...
...
Write
Preview
Supports
Markdown
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