Commit 64030da8 authored by Scott Wheeler's avatar Scott Wheeler

Moved the saveConfig() call from JuK::~JuK() to JuK::queryClose().

I also removed #include "slideraction.h" from juk.h and replaced it with
a forward declaration.

svn path=/trunk/kdemultimedia/juk/; revision=181909
parent 4b04d9a4
......@@ -26,6 +26,7 @@
#include "playlist.h"
#include "playlistsplitter.h"
#include "collectionlist.h"
#include "slideraction.h"
////////////////////////////////////////////////////////////////////////////////
// public members
......@@ -44,7 +45,6 @@ JuK::JuK(QWidget *parent, const char *name) : KMainWindow(parent, name, WDestruc
JuK::~JuK()
{
saveConfig();
delete(playTimer);
}
......@@ -188,6 +188,12 @@ void JuK::saveConfig()
}
}
bool JuK::queryClose()
{
saveConfig();
return(true);
}
////////////////////////////////////////////////////////////////////////////////
// private slot definitions
////////////////////////////////////////////////////////////////////////////////
......
......@@ -30,13 +30,12 @@
#include <qtimer.h>
#include <qlistview.h>
#include "slideraction.h"
#include "player.h"
class Playlist;
class PlaylistSplitter;
class PlaylistItem;
class SliderAction;
class JuK : public KMainWindow
{
......@@ -54,6 +53,8 @@ private:
void readConfig();
void saveConfig();
virtual bool queryClose();
// layout objects
PlaylistSplitter *splitter;
......
......@@ -357,8 +357,6 @@ void PlaylistSplitter::readConfig()
void PlaylistSplitter::saveConfig()
{
kdDebug() << "PlaylistSplitter::saveConfig()" << endl;
KConfig *config = KGlobal::config();
// Save the list of open playlists.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment