Fixed signal-slot connecting bug

preferencesAboutTextFull
Anna Udovichenko 13 years ago
parent b484dae47f
commit 88ad16b413
  1. 1
      src/gui/UBFeaturesActionBar.cpp
  2. 3
      src/gui/UBFeaturesWidget.cpp

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

Loading…
Cancel
Save