1
0
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:
Leo Franchi
2011-05-28 16:55:35 -04:00
parent fb06624821
commit 9f087b7da3
3 changed files with 11 additions and 12 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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 );
} }