Commit 88ad16b4 authored by Anna Udovichenko's avatar Anna Udovichenko

Fixed signal-slot connecting bug

parent b484dae4
...@@ -75,6 +75,7 @@ UBFeaturesActionBar::UBFeaturesActionBar( UBFeaturesController *controller, QWid ...@@ -75,6 +75,7 @@ UBFeaturesActionBar::UBFeaturesActionBar( UBFeaturesController *controller, QWid
connect(mSearchBar, SIGNAL(textChanged(QString)), this, SLOT(onSearchTextChanged(QString))); connect(mSearchBar, SIGNAL(textChanged(QString)), this, SLOT(onSearchTextChanged(QString)));
connect(mpNewFolderAction, SIGNAL(triggered()), this, SLOT(onActionNewFolder()));*/ connect(mpNewFolderAction, SIGNAL(triggered()), this, SLOT(onActionNewFolder()));*/
connect(mpFavoriteAction,SIGNAL(triggered()), this, SLOT(onActionFavorite()));
connect(mSearchBar, SIGNAL(textChanged(QString)), this, SLOT(onSearchTextChanged(QString))); connect(mSearchBar, SIGNAL(textChanged(QString)), this, SLOT(onSearchTextChanged(QString)));
connect(mpNewFolderAction, SIGNAL(triggered()), this, SLOT(onActionNewFolder())); connect(mpNewFolderAction, SIGNAL(triggered()), this, SLOT(onActionNewFolder()));
connect(mpRemoveFavorite, SIGNAL(triggered()), this, SLOT(onActionRemoveFavorite())); connect(mpRemoveFavorite, SIGNAL(triggered()), this, SLOT(onActionRemoveFavorite()));
......
...@@ -286,7 +286,8 @@ void UBFeaturesWidget::deleteSelectedElements() ...@@ -286,7 +286,8 @@ void UBFeaturesWidget::deleteSelectedElements()
foreach ( QModelIndex sel, selected ) foreach ( QModelIndex sel, selected )
{ {
UBFeature feature = sel.data( Qt::UserRole + 1 ).value<UBFeature>(); UBFeature feature = sel.data( Qt::UserRole + 1 ).value<UBFeature>();
urls.append( feature.getFullPath() ); if ( feature.isDeletable() )
urls.append( feature.getFullPath() );
} }
foreach (QUrl url, urls) foreach (QUrl url, urls)
......
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