Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/atcoreinstancewidget.cpp
Show First 20 Lines • Show All 161 Lines • ▼ Show 20 Line(s) | 133 | { | |||
---|---|---|---|---|---|
162 | ui->mainToolBarLayout->addWidget(m_connectButton); | 162 | ui->mainToolBarLayout->addWidget(m_connectButton); | ||
163 | 163 | | |||
164 | } | 164 | } | ||
165 | 165 | | |||
166 | void AtCoreInstanceWidget::connectButtonClicked() | 166 | void AtCoreInstanceWidget::connectButtonClicked() | ||
167 | { | 167 | { | ||
168 | if(m_core.state() == AtCore::DISCONNECTED) { | 168 | if(m_core.state() == AtCore::DISCONNECTED) { | ||
169 | if (m_comboProfile->currentText().isEmpty()) { | 169 | if (m_comboProfile->currentText().isEmpty()) { | ||
170 | QMessageBox::critical(this, i18n("Error"), i18n("Please, create a profile to connect on Settings!")); | 170 | QMessageBox::information(this, i18n("No Profiles!"), i18n("Connecting Requires creating a profile for your printer. Create a profile in the next dialog then try again.")); | ||
171 | emit(requestProfileDialog()); | ||||
171 | return; | 172 | return; | ||
172 | } | 173 | } | ||
173 | 174 | | |||
174 | if (m_comboPort->currentText().isEmpty()) { | 175 | if (m_comboPort->currentText().isEmpty()) { | ||
175 | QMessageBox::critical(this, i18n("Error"), i18n("Please, connect a serial device to continue!")); | 176 | QMessageBox::critical(this, i18n("Error"), i18n("Please, connect a serial device to continue!")); | ||
176 | return; | 177 | return; | ||
177 | } | 178 | } | ||
178 | 179 | | |||
▲ Show 20 Lines • Show All 285 Lines • Show Last 20 Lines |