| 157 | Q_ASSERT(check); |
| 158 | QStringList lstDrives = m_pSettings->GetRedirectionDrives(); |
| 159 | foreach(auto path, lstDrives) |
| 160 | { |
| 161 | QModelIndex index; |
| 162 | if(!path.isEmpty()) { |
| 163 | index = m_pFileModel->index(path); |
| 164 | ui->tvDrive->setCurrentIndex(index); |
| 165 | } |
| 166 | } |
| 167 | ShowDriveSelected(lstDrives.size()); |
| 168 | |
| 169 | // Security |