Skip to content

Commit

Permalink
Removed obsolete function parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjell Morgenstern authored and KjellMorgenstern committed Dec 12, 2023
1 parent 0127541 commit fc0a388
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/mainwindow/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3227,7 +3227,7 @@ void MainWindow::orderFabHoverEnter() {
if ((m_rolloverQuoteDialog != nullptr) && m_rolloverQuoteDialog->isVisible()) return;
QuoteDialog::setQuoteSucceeded(false);
QObject::connect(m_pcbGraphicsView, &PCBSketchWidget::fabQuoteFinishedSignal, this, &MainWindow::fireQuote);
m_pcbGraphicsView->requestQuote(true);
m_pcbGraphicsView->requestQuote();
}

void MainWindow::fireQuote() {
Expand Down
5 changes: 3 additions & 2 deletions src/sketch/pcbsketchwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2797,7 +2797,7 @@ void PCBSketchWidget::fabQuote() {
QEventLoop waitLoop;
QObject::connect(this, &PCBSketchWidget::fabQuoteFinishedSignal, &waitLoop, &QEventLoop::quit);
QTimer::singleShot(1000, &waitLoop, &QEventLoop::quit);
requestQuote(true);
requestQuote();
waitLoop.exec();

if (!QuoteDialog::quoteSucceeded()) {
Expand Down Expand Up @@ -2845,7 +2845,7 @@ void PCBSketchWidget::gotFabQuote(QNetworkReply * networkReply) {
networkReply->deleteLater();
}

void PCBSketchWidget::requestQuote(bool byUser) {
void PCBSketchWidget::requestQuote() {
int boardCount;
double width, height;
calcBoardDimensions(boardCount, width, height);
Expand All @@ -2870,6 +2870,7 @@ void PCBSketchWidget::requestQuote(bool byUser) {
QString countArgs = QuoteDialog::countArgs();
manager->setProperty("count", countArgs);
QString filename = QUrl::toPercentEncoding(filenameIf());
bool byUser = true;
connect(manager, SIGNAL(finished(QNetworkReply *)), this, SLOT(gotFabQuote(QNetworkReply *)));
QString string = QString("%8://fab.fritzing.org/fritzing-fab/quote%1&area=%2&width=%3&height=%4&count=%5&filename=%6&byuser=%7")
.arg(paramString)
Expand Down
2 changes: 1 addition & 1 deletion src/sketch/pcbsketchwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class PCBSketchWidget : public SketchWidget
ViewLayer::ViewLayerPlacement defaultViewLayerPlacement(ModelPart *);
void setPartLabelFont(QString fontFamily);
QString getPartLabelFont();
void requestQuote(bool byUser);
void requestQuote();

public Q_SLOTS:
void resizeBoard(double w, double h, bool doEmit);
Expand Down

0 comments on commit fc0a388

Please sign in to comment.