Permalink
Browse files

Compatability with liblightdm-qt-1-dev

  • Loading branch information...
1 parent d5bd734 commit 311f8817abf76e9288699e0edcd203da628c54d8 @SokoloffA SokoloffA committed Jan 12, 2013
Showing with 2 additions and 4 deletions.
  1. +2 −4 razorqt-lightdm-greeter/loginform.cpp
@@ -73,13 +73,11 @@ LoginForm::LoginForm(QWidget *parent) : QWidget(parent), ui(new Ui::LoginForm)
for (int row = 0; row < ui->sessionCombo->model()->rowCount(); row++)
{
QModelIndex index = ui->sessionCombo->model()->index(row, 0);
- bool isRazorSession;
#ifdef USING_LIGHTDM_QT_1
- isRazorSession = (QString("razor") == ui->sessionCombo->model()->data(index, QLightDM::SessionsModel::IdRole).toString());
+ if (QString("razor") == ui->sessionCombo->model()->data(index, QLightDM::SessionsModel::IdRole).toString())
#else
- isRazorSession = (QString("razor") == ui->sessionCombo->model()->data(index, QLightDM::SessionsModel::KeyRole).toString());
+ if (QString("razor") == ui->sessionCombo->model()->data(index, QLightDM::SessionsModel::KeyRole).toString())
#endif
- if (isRazorSession)
{
ui->sessionCombo->setCurrentIndex(row);
break;

0 comments on commit 311f881

Please sign in to comment.