connect(ui->playButton,SIGNAL(clicked()),this,SLOT(onPlay()));
connect(ui->listWidget, SIGNAL(itemSelectionChanged()), this, SLOT(onListSelectionChanged()));
+ connect(ui->actionGoUserHome, SIGNAL(triggered()), this, SLOT(showUserHomeFolder()));
connect(ui->actionGoHome, SIGNAL(triggered()), this, SLOT(showHomeFolder()));
connect(ui->actionSetHome, SIGNAL(triggered()), this, SLOT(setHomeFolder()));
connect(ui->actionViewFavourites, SIGNAL(triggered()), this, SLOT(showFavourites()));
void BrowseMainWindow::showHomeFolder() {
browseDirectory(AppSettings::getHomeDirectory().path);
}
+void BrowseMainWindow::showUserHomeFolder() {
+ browseDirectory("~/");
+}
void BrowseMainWindow::setHomeFolder() {
if (0 < mCurrentDir.length()) {
VlcDirectory dir;
<string>menu</string>
</property>
</widget>
+ <addaction name="actionGoUserHome"/>
<addaction name="actionGoHome"/>
<addaction name="actionSetHome"/>
<!--addaction name="actionViewFavourites"/-->
<!--addaction name="actionSetFavourite"/-->
</widget>
+ <action name="actionGoUserHome">
+ <property name="text">
+ <string>User Folder</string>
+ </property>
+ </action>
<action name="actionGoHome">
<property name="text">
<string>Home</string>