mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 22:56:42 +02:00
Add Christopher's copyright and less debug
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||||
*
|
*
|
||||||
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
* Copyright 2011, Christopher Reichert <creichert07@gmail.com>
|
||||||
*
|
*
|
||||||
* Tomahawk is free software: you can redistribute it and/or modify
|
* Tomahawk is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||||
*
|
*
|
||||||
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
* Copyright 2011, Christopher Reichert <creichert07@gmail.com>
|
||||||
*
|
*
|
||||||
* Tomahawk is free software: you can redistribute it and/or modify
|
* Tomahawk is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -28,7 +28,7 @@ namespace Ui
|
|||||||
class PlaylistTypeSelectorDlg;
|
class PlaylistTypeSelectorDlg;
|
||||||
}
|
}
|
||||||
|
|
||||||
class DLLEXPORT PlaylistTypeSelectorDlg : public QDialog
|
class DLLEXPORT PlaylistTypeSelectorDlg : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
@@ -43,13 +43,13 @@ private slots:
|
|||||||
void createNormalPlaylist();
|
void createNormalPlaylist();
|
||||||
void createAutomaticPlaylist();
|
void createAutomaticPlaylist();
|
||||||
void enableAutoPlaylistButton( const QString& );
|
void enableAutoPlaylistButton( const QString& );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_isAutoPlaylist; // if not an auto playlist then its a normal playlist
|
bool m_isAutoPlaylist; // if not an auto playlist then its a normal playlist
|
||||||
|
|
||||||
Ui::PlaylistTypeSelectorDlg *ui;
|
Ui::PlaylistTypeSelectorDlg *ui;
|
||||||
QString m_playlistName;
|
QString m_playlistName;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // PlaylistTypeSelectorDlg_H
|
#endif // PlaylistTypeSelectorDlg_H
|
||||||
|
@@ -447,7 +447,7 @@ void
|
|||||||
TomahawkWindow::createAutomaticPlaylist( QString playlistName )
|
TomahawkWindow::createAutomaticPlaylist( QString playlistName )
|
||||||
{
|
{
|
||||||
QString name = playlistName;
|
QString name = playlistName;
|
||||||
|
|
||||||
if ( name.isEmpty() )
|
if ( name.isEmpty() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -486,17 +486,16 @@ TomahawkWindow::createPlaylist()
|
|||||||
{
|
{
|
||||||
PlaylistTypeSelectorDlg playlistSelectorDlg;
|
PlaylistTypeSelectorDlg playlistSelectorDlg;
|
||||||
int successfulReturn = playlistSelectorDlg.exec();
|
int successfulReturn = playlistSelectorDlg.exec();
|
||||||
|
|
||||||
qDebug() << "\n\nSTAT == " << successfulReturn;
|
|
||||||
if ( !playlistSelectorDlg.playlistTypeIsAuto() && successfulReturn ) {
|
if ( !playlistSelectorDlg.playlistTypeIsAuto() && successfulReturn ) {
|
||||||
|
|
||||||
// only show if none is shown yet
|
// only show if none is shown yet
|
||||||
if( !ViewManager::instance()->isNewPlaylistPageVisible() ) {
|
if( !ViewManager::instance()->isNewPlaylistPageVisible() ) {
|
||||||
ViewManager::instance()->show( new NewPlaylistWidget() );
|
ViewManager::instance()->show( new NewPlaylistWidget() );
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ( playlistSelectorDlg.playlistTypeIsAuto() && successfulReturn ) {
|
} else if ( playlistSelectorDlg.playlistTypeIsAuto() && successfulReturn ) {
|
||||||
// create Auto Playlist
|
// create Auto Playlist
|
||||||
QString playlistName = playlistSelectorDlg.playlistName();
|
QString playlistName = playlistSelectorDlg.playlistName();
|
||||||
APP->mainWindow()->createAutomaticPlaylist( playlistName );
|
APP->mainWindow()->createAutomaticPlaylist( playlistName );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user