Skip to content

Commit

Permalink
Format.
Browse files Browse the repository at this point in the history
  • Loading branch information
textbrowser committed Nov 3, 2024
1 parent 1f0f716 commit 62f02cb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Source/biblioteq_a.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4180,11 +4180,7 @@ void biblioteq::slotRefresh(void)

void biblioteq::slotReserveCopy(void)
{
QString errorstr = "";
QString oid = "";
QString type = "";
auto const row = ui.table->currentRow();
int availability = 0;

if(row < 0)
{
Expand All @@ -4203,7 +4199,7 @@ void biblioteq::slotReserveCopy(void)
return;
}

type = biblioteq_misc_functions::getColumnString
auto const type = biblioteq_misc_functions::getColumnString
(ui.table, row, ui.table->columnNumber("Type"));

if(type == "Photograph Collection")
Expand All @@ -4221,11 +4217,15 @@ void biblioteq::slotReserveCopy(void)
return;
}

oid = biblioteq_misc_functions::getColumnString
auto const oid = biblioteq_misc_functions::getColumnString
(ui.table, row, ui.table->columnNumber("MYOID"));

QApplication::setOverrideCursor(Qt::WaitCursor);
availability = biblioteq_misc_functions::getAvailability

QString errorstr = "";
auto const availability = biblioteq_misc_functions::getAvailability
(oid, m_db, type, errorstr).toInt();

QApplication::restoreOverrideCursor();

if(!errorstr.isEmpty())
Expand Down Expand Up @@ -4365,8 +4365,8 @@ void biblioteq::slotReset(void)
}
else if(action == actions[5])
{
al.price->setValue(-0.01);
al.price->setFocus();
al.price->setValue(-0.01);
}
else if(action == actions[6])
{
Expand All @@ -4386,8 +4386,8 @@ void biblioteq::slotReset(void)
}
else if(action == actions[9])
{
al.quantity->setValue(0);
al.quantity->setFocus();
al.quantity->setValue(0);
}
else if(action == actions[10])
{
Expand Down

0 comments on commit 62f02cb

Please sign in to comment.