parent
d67224858d
commit
c2d725ec6d
2 changed files with 9 additions and 4 deletions
|
|
@ -62,10 +62,15 @@ void ConnectionManagerWindow::on_actionDelete_connection_triggered()
|
||||||
{
|
{
|
||||||
auto ci = ui->listView->selectionModel()->currentIndex();
|
auto ci = ui->listView->selectionModel()->currentIndex();
|
||||||
if (ci.isValid()) {
|
if (ci.isValid()) {
|
||||||
|
|
||||||
|
auto res = QMessageBox::question(this, "pglab",
|
||||||
|
tr("Are you sure you want to remove this connection?"), QMessageBox::Yes, QMessageBox::No);
|
||||||
|
if (res == QMessageBox::Yes) {
|
||||||
auto clm = m_masterController->getConnectionListModel();
|
auto clm = m_masterController->getConnectionListModel();
|
||||||
clm->removeRow(ci.row());
|
clm->removeRow(ci.row());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void ConnectionManagerWindow::setupWidgetMappings()
|
void ConnectionManagerWindow::setupWidgetMappings()
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,11 @@ DEFINES += WIN32_LEAN_AND_MEAN NOMINMAX _WIN32_WINNT=0x0501
|
||||||
LIBS += -LC:\VSproj\boost32\lib -LC:/PROG/LIB -lws2_32 -llibpq
|
LIBS += -LC:\VSproj\boost32\lib -LC:/PROG/LIB -lws2_32 -llibpq
|
||||||
|
|
||||||
#debug {
|
#debug {
|
||||||
LIBS += c:/prog/lib/botan_imp.lib
|
LIBS += c:/prog/lib/botand_imp.lib
|
||||||
#}
|
#}
|
||||||
|
|
||||||
#release {
|
#release {
|
||||||
#LIBS += c:/prog/lib/botan_imp.lib
|
#LIBS += c:/prog/lib/botan.lib
|
||||||
#}
|
#}
|
||||||
|
|
||||||
win32:RC_ICONS += pglab.ico
|
win32:RC_ICONS += pglab.ico
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue