Fixed a small directory creation bug...
svn path=/trunk/kdebase/kwin/; revision=92605icc-effect-5.14.5
parent
ca911cbf0e
commit
95ff482ac7
|
@ -39,7 +39,7 @@ IceWMConfig::IceWMConfig( KConfig* conf, QWidget* parent )
|
||||||
gb1 = new QGroupBox( 1, Qt::Horizontal, i18n("IceWM Theme Selector"), parent );
|
gb1 = new QGroupBox( 1, Qt::Horizontal, i18n("IceWM Theme Selector"), parent );
|
||||||
themeListBox = new QListBox( gb1 );
|
themeListBox = new QListBox( gb1 );
|
||||||
themeLabel = new QLabel( i18n("To manage your IceWM themes, simply click on the link below to open a Konqueror window. "
|
themeLabel = new QLabel( i18n("To manage your IceWM themes, simply click on the link below to open a Konqueror window. "
|
||||||
"Once shown, you will be able to add or remove natice IceWM themes, by uncompressing <b>http://icewm.themes.org/</b> "
|
"Once shown, you will be able to add or remove native IceWM themes, by uncompressing <b>http://icewm.themes.org/</b> "
|
||||||
"theme files into this directory, or creating directory symlinks to existing IceWM themes on your system."), parent );
|
"theme files into this directory, or creating directory symlinks to existing IceWM themes on your system."), parent );
|
||||||
urlLabel = new KURLLabel( parent );
|
urlLabel = new KURLLabel( parent );
|
||||||
urlLabel->setText( i18n("Open Konqueror Window at KDE's IceWM theme directory") );
|
urlLabel->setText( i18n("Open Konqueror Window at KDE's IceWM theme directory") );
|
||||||
|
@ -61,13 +61,8 @@ IceWMConfig::IceWMConfig( KConfig* conf, QWidget* parent )
|
||||||
connect( cbTitleBarOnTop, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()) );
|
connect( cbTitleBarOnTop, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()) );
|
||||||
connect( cbShowMenuButtonIcon, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()) );
|
connect( cbShowMenuButtonIcon, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()) );
|
||||||
|
|
||||||
// Make sure the local user's theme directory actually exists...
|
// Create the theme directory (if not found) ... and obtain the path as we do so.
|
||||||
QStringList dirList = KGlobal::dirs()->findDirs("data", "kwin");
|
QString localThemeString = KGlobal::dirs()->saveLocation("data", "kwin");
|
||||||
QString localThemeString = *(dirList.begin());
|
|
||||||
|
|
||||||
// Create the directory if not found...
|
|
||||||
if (localThemeString.isEmpty())
|
|
||||||
localThemeString = KGlobal::dirs()->saveLocation("data", "kwin");
|
|
||||||
|
|
||||||
localThemeString += "/icewm-themes";
|
localThemeString += "/icewm-themes";
|
||||||
if (!QFile::exists(localThemeString))
|
if (!QFile::exists(localThemeString))
|
||||||
|
|
Loading…
Reference in New Issue